diff options
Diffstat (limited to 'AudioManagerDaemon')
-rwxr-xr-x | AudioManagerDaemon/src/CAmWatchdog.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/AudioManagerDaemon/src/CAmWatchdog.cpp b/AudioManagerDaemon/src/CAmWatchdog.cpp index 61e0624..15c7dcc 100755 --- a/AudioManagerDaemon/src/CAmWatchdog.cpp +++ b/AudioManagerDaemon/src/CAmWatchdog.cpp @@ -42,8 +42,14 @@ CAmWatchdog::CAmWatchdog(CAmSocketHandler* CAmSocketHandler) : { assert(mpCAmSocketHandler); + //first retrieve the timeout interval - int watchdogTimeout = atoi(getenv("WATCHDOG_USEC")); + + int watchdogTimeout = 0; + + char* wusec=getenv("WATCHDOG_USEC"); + if (wusec) + watchdogTimeout=atoi(wusec); if (watchdogTimeout > 0) { |