forked from M-Labs/artiq
1
0
Fork 0

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], [ev_queue, ev_periodic],
timeout=next_periodic, timeout=next_periodic,
return_when=asyncio.FIRST_COMPLETED) return_when=asyncio.FIRST_COMPLETED)
self.periodic_modified.clear()
for t in pend: for t in pend:
t.cancel() t.cancel()