From 1b15033f83c2f33ed1a06a2ee0be90239d854554 Mon Sep 17 00:00:00 2001 From: jkerdreux-imt <jerome.kerdreux@imt-atlantique.fr> Date: Mon, 27 Jan 2025 15:38:17 +0100 Subject: [PATCH] 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... --- libs/lib/xaal/lib/aioengine.py | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/lib/xaal/lib/aioengine.py b/libs/lib/xaal/lib/aioengine.py index 721ba0bf..36a59d75 100644 --- a/libs/lib/xaal/lib/aioengine.py +++ b/libs/lib/xaal/lib/aioengine.py @@ -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 -- GitLab