diff options
Diffstat (limited to 'switchtimer_thread.c')
-rw-r--r-- | switchtimer_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/switchtimer_thread.c b/switchtimer_thread.c index 179af83..f8e10d8 100644 --- a/switchtimer_thread.c +++ b/switchtimer_thread.c @@ -81,7 +81,7 @@ void cSwitchTimerThread::Action(void) cMutexLock SwitchTimersLock(&SwitchTimers); LogFile.Log(3,"switch timer check started"); cSwitchTimer* switchTimer = SwitchTimers.First(); - while (switchTimer) + while (switchTimer && m_Active) { const cEvent* event = switchTimer->event; if (event && event->StartTime() - now < switchTimer->switchMinsBefore*60 + MSG_DELAY + 1) |