Fixed regression error in script force_repeat. Resolves #785.

This commit is contained in:
Griatch 2015-08-20 22:14:04 +02:00
parent 61d591409a
commit c393f70638

View file

@ -109,10 +109,11 @@ class ExtendedLoopingCall(LoopingCall):
""" """
assert self.running, ("Tried to fire an ExtendedLoopingCall " assert self.running, ("Tried to fire an ExtendedLoopingCall "
"that was not running.") "that was not running.")
if self.call is not None: self.call.cancel()
self.call.cancel() self.call = None
self.call.callback() self.starttime = self.clock.seconds()
self() self()
def next_call_time(self): def next_call_time(self):
""" """