mirror of https://github.com/Shizmob/pydle.git
Correctly reschedule periodic tasks.
This commit is contained in:
parent
71684ba0bd
commit
e30cc7fd2d
|
@ -214,7 +214,7 @@ class EventLoop:
|
|||
|
||||
def _periodic_handler(self, interval, callback, args, kwargs):
|
||||
# Call callback, and schedule again if it doesn't return False.
|
||||
handle = self._do_schedule_in(interval, callback, args, kwargs)
|
||||
handle = self._do_schedule_periodically(interval, callback, args, kwargs)
|
||||
result = False
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue