aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-09-05 21:33:54 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-09-05 21:33:54 +0000
commitf03c85f8c3575d22eb065313857d8d3e57960e95 (patch)
tree6cc3e79d1195b9d0379c6f3fb47d6c6111ffa5e4 /lib/python
parentec970c4f4534a4ed6f1f4d930bfb8d56bf5531a9 (diff)
downloadenigma2-f03c85f8c3575d22eb065313857d8d3e57960e95.tar.gz
enigma2-f03c85f8c3575d22eb065313857d8d3e57960e95.zip
dont start timers as recurring timers... this is better for blocking syscalls
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/Sources/FrontendStatus.py3
-rw-r--r--lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py3
2 files changed, 4 insertions, 2 deletions
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:
diff --git a/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py b/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py
index a4008c2d..d67a97cb 100644
--- a/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py
@@ -124,7 +124,7 @@ class PositionerSetup(Screen):
self.statusTimer = eTimer()
self.statusTimer.callback.append(self.updateStatus)
- self.statusTimer.start(50, False)
+ self.statusTimer.start(50, True)
self.onClose.append(self.__onClose)
def __onClose(self):
@@ -345,6 +345,7 @@ class PositionerSetup(Screen):
self.isMoving = False
self.stopOnLock = False
self.updateColors(self.getCurrentConfigPath())
+ self.statusTimer.start(50, True)
def tune(self, transponder):
if transponder is not None: