Support duo4k.
[vuplus_dvbapp] / timer.py
index 64df9c8..d58a83e 100644 (file)
--- a/timer.py
+++ b/timer.py
@@ -232,6 +232,10 @@ class Timer:
                self.setNextActivation(min)
        
        def timeChanged(self, timer):
+               if timer not in (self.processed_timers + self.timer_list):
+                       print "timer not found"
+                       return
+
                print "time changed"
                timer.timeChanged()
                if timer.state == TimerEntry.StateEnded:
@@ -246,7 +250,7 @@ class Timer:
        
        def doActivate(self, w):
                self.timer_list.remove(w)
-               
+
                # when activating a timer which has already passed,
                # simply abort the timer. don't run trough all the stages.
                if w.shouldSkip():