Merge branch 'acid-burn/bug_622_swupgrade_networkcheck' into experimental
[enigma2.git] / lib / python / Components / Sources / FrontendStatus.py
index 3e469e0da9b4fc5142bd1c2ca6ca7c340bd58a59..8f1b36dc73fd3eb28ce57b1f9b85b41217e702cc 100644 (file)
@@ -10,7 +10,7 @@ class FrontendStatus(Source):
                self.invalidate()
                self.poll_timer = eTimer()
                self.poll_timer.callback.append(self.updateFrontendStatus)
-               self.poll_timer.start(update_interval)
+               self.poll_timer.start(update_interval, True)
 
        def invalidate(self):
                self.snr = self.agc = self.ber = self.lock = self.snr_db = None
@@ -26,6 +26,7 @@ class FrontendStatus(Source):
                        self.ber = status.get("tuner_bit_error_rate")
                        self.lock = status.get("tuner_locked")
                self.changed((self.CHANGED_ALL, ))
+               self.poll_timer.start(self.update_interval, True)
 
        def getFrontendStatus(self):
                if self.frontend_source:
@@ -45,8 +46,9 @@ class FrontendStatus(Source):
                if suspended:
                        self.poll_timer.stop()
                else:
-                       self.poll_timer.start(self.update_interval)
+                       self.updateFrontendStatus()
 
        def destroy(self):
                self.poll_timer.callback.remove(self.updateFrontendStatus)
+               Source.destroy(self)