do not play running service again
[enigma2.git] / Navigation.py
index 06d47ac4fcad6f6cf83de246bde15670c52942a3..0262a4652f780fc4cc2488d5171d577e6a571ff8 100644 (file)
@@ -42,6 +42,9 @@ class Navigation:
 
        def playService(self, ref, checkParentalControl = True):
                oldref = self.currentlyPlayingServiceReference
+               if ref and oldref and ref == oldref:
+                       print "ignore request to play already running service"
+                       return 0
                print "playing", ref and ref.toString()
                self.currentlyPlayingServiceReference = None
                self.currentlyPlayingService = None