Skip to content
Snippets Groups Projects
Commit 8e060450 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Added more checks (not really needed)

parent b370378c
No related branches found
No related tags found
No related merge requests found
...@@ -268,7 +268,7 @@ class AsyncEngine(core.EngineMixin): ...@@ -268,7 +268,7 @@ class AsyncEngine(core.EngineMixin):
self.started_event.clear() self.started_event.clear()
# cancel all tasks # cancel all tasks
for task in self.all_tasks(): for task in self.all_tasks():
if task != self._watchdog_task: if task != self._watchdog_task and not task.cancelled():
task.cancel() task.cancel()
def sigkill_handler(self, signal, frame): def sigkill_handler(self, signal, frame):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment