From 2029613c581e94404be985e4b527094c56be3b7e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 13 Jan 2015 18:01:01 +0800 Subject: [PATCH] management/scheduler: cleanup pending tasks --- artiq/management/scheduler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/management/scheduler.py b/artiq/management/scheduler.py index 61f88b24b..407b6bdea 100644 --- a/artiq/management/scheduler.py +++ b/artiq/management/scheduler.py @@ -115,3 +115,5 @@ class Scheduler: ], timeout=next_periodic, return_when=asyncio.FIRST_COMPLETED) + for t in pend: + t.cancel()