Correct syntax of event call in Timers.call

This commit is contained in:
jesopo 2018-09-28 17:01:41 +01:00
parent c5c2c50bc4
commit 5cd1936af9

View file

@ -69,6 +69,7 @@ class Timers(object):
for timer in self.timers[:]: for timer in self.timers[:]:
if timer.due(): if timer.due():
timer.finish() 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(): if timer.done():
self._remove(timer) self._remove(timer)