From: Stefan Pluecken Date: Sat, 26 Nov 2005 05:45:16 +0000 (+0000) Subject: fix another timer-issue (with a try except-block... explanation is in the code) X-Git-Tag: 2.6.0~4936 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/d7a21e41d75201806e8f7eed47b0097bc811d56b?ds=sidebyside fix another timer-issue (with a try except-block... explanation is in the code) --- diff --git a/RecordTimer.py b/RecordTimer.py index 13407958..62fa6370 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -162,7 +162,12 @@ class RecordTimer(timer.Timer): self.timeChanged(entry) elif entry.state != timer.TimerEntry.StateEnded: entry.activate(timer.TimerEntry.EventAbort) - self.timer_list.remove(entry) + try: # FIXME: is needed, because after loading the timers, every timer (even already ended ones) + # have the state EventWaiting.. + self.timer_list.remove(entry) + except: + pass + self.calcNextActivation() print "timer did not yet start - removing" else: