Correct syntax of event call in Timers.call
This commit is contained in:
parent
c5c2c50bc4
commit
5cd1936af9
1 changed files with 2 additions and 1 deletions
|
@ -69,6 +69,7 @@ class Timers(object):
|
|||
for timer in self.timers[:]:
|
||||
if timer.due():
|
||||
timer.finish()
|
||||
self.events.on("timer.%s" % timer.name, timer=timer)
|
||||
self.events.on("timer.%s" % timer.name).call(timer=timer,
|
||||
**timer.kwargs)
|
||||
if timer.done():
|
||||
self._remove(timer)
|
||||
|
|
Loading…
Reference in a new issue