Merge branch 'master' of git://git.opendreambox.org/git/enigma2
[enigma2.git] / lib / python / Components / Converter / Poll.py
index 060c12ea68a654de49bcde002979352039a26eaf..6db93ef5801319af6e6cd51fde726a67ee3eb2ec 100644 (file)
@@ -3,7 +3,7 @@ from enigma import eTimer
 class Poll(object):
        def __init__(self):
                self.__poll_timer = eTimer()
-               self.__poll_timer.timeout.get().append(self.poll)
+               self.__poll_timer.callback.append(self.poll)
                self.__interval = 1000
                self.__enabled = False
 
@@ -29,3 +29,5 @@ class Poll(object):
                if not suspended:
                        self.poll()
 
+       def destroy(self):
+               self.__poll_timer.callback.remove(self.poll)