X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/a68abaddf31f9bad3affe6d7f81047dc89ec2a4e..57794b7710b06a1dcc156a91c84bb8316f104f06:/lib/python/Components/Sources/Clock.py diff --git a/lib/python/Components/Sources/Clock.py b/lib/python/Components/Sources/Clock.py index 8341ebec..ba672825 100644 --- a/lib/python/Components/Sources/Clock.py +++ b/lib/python/Components/Sources/Clock.py @@ -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 @@ -26,3 +26,7 @@ class Clock(Source): else: self.clock_timer.start(1000) self.poll() + + def destroy(self): + self.clock_timer.callback.remove(self.poll) + Source.destroy(self)