management/scheduler: fix busywait bug

This commit is contained in:
Sebastien Bourdeauducq 2014-12-29 13:32:11 +08:00
parent 255b00f678
commit 02f3781e65
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ class Scheduler:
[ev_queue, ev_periodic],
timeout=next_periodic,
return_when=asyncio.FIRST_COMPLETED)
self.periodic_modified.clear()
for t in pend:
t.cancel()