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

Fix Event loop closed bug

Once again, I run into this really hard to debug issue w/ asyncio. The
previous bug in shell was in fact a issue w/ ayncio.sleep() that prevent
task to close.. (don't ask my why... in previous version this sleep was
needed to close tasks...
parent 35a7310e
Branches
No related tags found
No related merge requests found
......@@ -270,7 +270,6 @@ class AsyncEngine(core.EngineMixin):
for task in self.all_tasks():
if task != self._watchdog_task:
task.cancel()
await asyncio.sleep(0.1)
def sigkill_handler(self, signal, frame):
print("", end="\r") # remove the uggly ^C
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment