Support turbo2.
[vuplus_dvbapp] / lib / python / Components / Sources / Clock.py
index b59a20d..ba67282 100644 (file)
@@ -8,7 +8,7 @@ class Clock(Source):
        def __init__(self):
                Source.__init__(self)
                self.clock_timer = eTimer()
-               self.clock_timer.timeout.get().append(self.poll)
+               self.clock_timer.callback.append(self.poll)
                self.clock_timer.start(1000)
 
        @cached
@@ -28,4 +28,5 @@ class Clock(Source):
                        self.poll()
 
        def destroy(self):
-               self.clock_timer.timeout.get().remove(self.poll)
+               self.clock_timer.callback.remove(self.poll)
+               Source.destroy(self)