diff options
Diffstat (limited to 'switchtimer_thread.c')
-rw-r--r-- | switchtimer_thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/switchtimer_thread.c b/switchtimer_thread.c index 732768f..9af39aa 100644 --- a/switchtimer_thread.c +++ b/switchtimer_thread.c @@ -81,7 +81,7 @@ void cSwitchTimerThread::Action(void) if (now >= nextUpdate) { LogFile.Log(3,"locking switch timers"); - cMutexLock SwitchTimersLock(&SwitchTimers); + SwitchTimers.Lock(); LogFile.Log(3,"switch timer check started"); cSwitchTimer* switchTimer = SwitchTimers.First(); while (switchTimer && m_Active) @@ -136,6 +136,7 @@ void cSwitchTimerThread::Action(void) } switchTimer = SwitchTimers.Next(switchTimer); } + SwitchTimers.Unlock(); LogFile.Log(3,"switch timer check finished"); if (m_Active) Wait.Wait(1000 * MSG_DELAY); |