From f03c85f8c3575d22eb065313857d8d3e57960e95 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 5 Sep 2008 21:33:54 +0000 Subject: dont start timers as recurring timers... this is better for blocking syscalls --- lib/python/Components/Sources/FrontendStatus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/Sources/FrontendStatus.py b/lib/python/Components/Sources/FrontendStatus.py index 821c9f12..5eb3445f 100644 --- a/lib/python/Components/Sources/FrontendStatus.py +++ b/lib/python/Components/Sources/FrontendStatus.py @@ -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: -- cgit v1.2.3