Standby: fix stop service in standby if box automatic wake up, e.g. for record timer
authorDima73 <Dima-73@inbox.lv>
Wed, 22 Jul 2015 17:34:24 +0000 (20:34 +0300)
committerDima73 <Dima-73@inbox.lv>
Wed, 22 Jul 2015 17:34:24 +0000 (20:34 +0300)
lib/python/Screens/Standby.py

index 2a539bc..63931d5 100644 (file)
@@ -69,16 +69,16 @@ class Standby(Screen):
                        if service.rsplit(":", 1)[1].startswith("/"):
                                self.paused_service = True
                                self.infoBarInstance.pauseService()
-                       else:
-                               self.timeHandler =  eDVBLocalTimeHandler.getInstance()
-                               if self.timeHandler.ready():
-                                       if self.session.nav.getCurrentlyPlayingServiceOrGroup():
-                                               self.stopService()
-                                       else:
-                                               self.standbyStopServiceTimer.startLongTimer(5)
-                                       self.timeHandler = None
+               if not self.paused_service:
+                       self.timeHandler =  eDVBLocalTimeHandler.getInstance()
+                       if self.timeHandler.ready():
+                               if self.session.nav.getCurrentlyPlayingServiceOrGroup():
+                                       self.stopService()
                                else:
-                                       self.timeHandler.m_timeUpdated.get().append(self.stopService)
+                                       self.standbyStopServiceTimer.startLongTimer(5)
+                               self.timeHandler = None
+                       else:
+                               self.timeHandler.m_timeUpdated.get().append(self.stopService)
 
                if self.session.pipshown:
                        self.infoBarInstance and hasattr(self.infoBarInstance, "showPiP") and self.infoBarInstance.showPiP()