diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-11-28 03:57:37 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-11-28 03:57:37 +0000 |
| commit | cb50b5479d207eae71e302ff37e5960281c039c8 (patch) | |
| tree | 0134976460bfc0ab4a15207199b94ba0b216c699 /timer.py | |
| parent | 11027439f74d586f8c70abe86adbbf2e04ee53a1 (diff) | |
| download | enigma2-cb50b5479d207eae71e302ff37e5960281c039c8.tar.gz enigma2-cb50b5479d207eae71e302ff37e5960281c039c8.zip | |
timer: passed timers will always be set to StateEnded, and set back to waiting when reprocessing (due timewarp). waiting timers will be removed from one list only. remove try/except.
Diffstat (limited to 'timer.py')
| -rw-r--r-- | timer.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -103,6 +103,7 @@ class Timer: # right into the processedTimers. if entry.end <= time.time() and entry.state == TimerEntry.StateWait: bisect.insort(self.processed_timers, entry) + entry.state = TimerEntry.StateEnded else: bisect.insort(self.timer_list, entry) if not noRecalc: @@ -121,6 +122,8 @@ class Timer: tl = self.processed_timers self.processed_timers = [ ] for x in tl: + # simulate a "waiting" state to give them a chance to re-occure + x.state = TimerEntry.StateWaiting self.addTimerEntry(x, noRecalc=1) self.processActivation() |
