self.backoff = 0
self.disabled = False
-
+
+ def resetState(self):
+ self.state = self.StateWaiting
+ self.cancelled = False
+ self.first_try_prepare = True
+ self.timeChanged()
+
def resetRepeated(self):
self.repeated = int(0)
self.processed_timers = [ ]
self.timer = eTimer()
- self.timer.timeout.get().append(self.calcNextActivation)
+ self.timer.callback.append(self.calcNextActivation)
self.lastActivation = time()
self.calcNextActivation()