aboutsummaryrefslogtreecommitdiff
path: root/RecordTimer.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-01-07 01:00:31 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-01-07 01:00:31 +0000
commit674719294af7449c52d93b1969aeebbaa9117cbe (patch)
tree5a0678ae9982c8a0bc7607d46a2b03b9d8738027 /RecordTimer.py
parent181f1cdcee428f446da2a1d05976b7f1a75a8431 (diff)
downloadenigma2-674719294af7449c52d93b1969aeebbaa9117cbe.tar.gz
enigma2-674719294af7449c52d93b1969aeebbaa9117cbe.zip
take care of running recording before realy shutdown e2
Diffstat (limited to 'RecordTimer.py')
-rw-r--r--RecordTimer.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/RecordTimer.py b/RecordTimer.py
index f330f8c0..839069ac 100644
--- a/RecordTimer.py
+++ b/RecordTimer.py
@@ -7,9 +7,11 @@ from Components.config import config, ConfigYesNo
import timer
import xml.dom.minidom
-from enigma import quitMainloop, eEPGCache, getBestPlayableServiceReference, eServiceReference
+from enigma import eEPGCache, getBestPlayableServiceReference, eServiceReference
from Screens.MessageBox import MessageBox
+from Screens.Standby import Standby, TryQuitMainloop, inStandby, inTryQuitMainloop
+
import NavigationInstance
from time import localtime
@@ -69,7 +71,6 @@ class RecordTimerEntry(timer.TimerEntry):
self.start_prepare = 0
self.justplay = justplay
self.afterEvent = afterEvent
- self.session = None
self.log_entries = []
self.resetState()
@@ -212,10 +213,13 @@ class RecordTimerEntry(timer.TimerEntry):
NavigationInstance.instance.stopRecordService(self.record_service)
self.record_service = None
if self.afterEvent == AFTEREVENT.STANDBY:
- if self.session is not None:
- self.session.open(Standby, self)
- elif self.afterEvent == AFTEREVENT.DEEPSTANDBY:
- quitMainloop(1)
+ global inStandby
+ if not inStandby:
+ Notifications.AddNotification(Standby)
+ if self.afterEvent == AFTEREVENT.DEEPSTANDBY:
+ global inTryQuitMainloop
+ if not inTryQuitMainloop:
+ Notifications.AddNotification(TryQuitMainloop, 1)
return True
def getNextActivation(self):