From fa0d7d7529e7ec45760abd37ed03e4198c5c4fc8 Mon Sep 17 00:00:00 2001 From: Jeremy Grossmann Date: Mon, 18 Nov 2024 12:13:41 +1000 Subject: [PATCH] Use call_soon_threadsafe() in notification manager --- gns3server/compute/notification_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/notification_manager.py b/gns3server/compute/notification_manager.py index 22955b177..44c9ca391 100644 --- a/gns3server/compute/notification_manager.py +++ b/gns3server/compute/notification_manager.py @@ -54,7 +54,7 @@ def emit(self, action, event, **kwargs): """ for listener in self._listeners: - asyncio.get_event_loop().call_soon(listener.put_nowait, (action, event, kwargs)) + asyncio.get_event_loop().call_soon_threadsafe(listener.put_nowait, (action, event, kwargs)) @staticmethod def reset():