diff options
Diffstat (limited to 'timer.c')
-rw-r--r-- | timer.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -618,8 +618,6 @@ int cUpdate::updateTimerTable() #if defined (APIVERSNUM) && (APIVERSNUM >= 20301) LOCK_TIMERS_WRITE; cTimers* timers = Timers; - // cTimersLock timersLock(true); - // cTimers* timers = timersLock.Timers(); #else cTimers* timers = &Timers; #endif @@ -711,6 +709,11 @@ int cUpdate::updateTimerTable() int insert = yes; int timerId = getTimerIdOf(t); + // update only assumed timers + + if (!timerDb->getValue("ACTION")->isEmpty() && !timerDb->hasCharValue("ACTION", taAssumed)) + continue; + // no timer id or not in table -> handle as insert! timerDb->clear(); |