X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=timer.py;h=432c53aca0424fdc1092c6c5e8c79d1d783a9555;hb=1491d0aae0f1340a296ad9a764fdf2001f813ad6;hp=48ba7696c834d8866b369ed2770a5456edc408f7;hpb=6f09a61cf36eb3918574a74588bbeec6a829b084;p=vuplus_dvbapp diff --git a/timer.py b/timer.py index 48ba769..432c53a 100644 --- a/timer.py +++ b/timer.py @@ -114,7 +114,7 @@ class Timer: f(entry) def cleanup(self): - self.processed_timers = [] + self.processed_timers = [entry for entry in self.processed_timers if entry.disabled] def addTimerEntry(self, entry, noRecalc=0): entry.processRepeated() @@ -173,8 +173,7 @@ class Timer: # when activating a timer which has already passed, # simply abort the timer. don't run trough all the stages. if w.shouldSkip(): - w.abort() - bisect.insort(self.processed_timers, w) + w.state = TimerEntry.StateEnded else: # when active returns true, this means "accepted". # otherwise, the current state is kept.