Skip to content

Commit fa0d7d7

Browse files
authored
Use call_soon_threadsafe() in notification manager
1 parent b37db57 commit fa0d7d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gns3server/compute/notification_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def emit(self, action, event, **kwargs):
5454
"""
5555

5656
for listener in self._listeners:
57-
asyncio.get_event_loop().call_soon(listener.put_nowait, (action, event, kwargs))
57+
asyncio.get_event_loop().call_soon_threadsafe(listener.put_nowait, (action, event, kwargs))
5858

5959
@staticmethod
6060
def reset():

0 commit comments

Comments
 (0)