management/scheduler: cleanup pending tasks

This commit is contained in:
Sebastien Bourdeauducq 2015-01-13 18:01:01 +08:00
parent f12e721974
commit 2029613c58

View File

@ -115,3 +115,5 @@ class Scheduler:
],
timeout=next_periodic,
return_when=asyncio.FIRST_COMPLETED)
for t in pend:
t.cancel()