summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dynamicdevice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dynamicdevice.c b/dynamicdevice.c
index 2fcb9a4..111c9a1 100644
--- a/dynamicdevice.c
+++ b/dynamicdevice.c
@@ -357,6 +357,8 @@ void cDynamicDevice::ReadUdevProperties(void)
void cDynamicDevice::InternSetGetTSTimeout(int Seconds)
{
getTSTimeout = Seconds;
+ if (subDevice == NULL)
+ return; // no log message if no device is connected
if (Seconds == 0)
isyslog("dynamite: disable GetTSTimeout on device %s", GetDevPath());
else