mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-29 02:08:10 +00:00
Use call_soon_threadsafe() in notification manager
This commit is contained in:
parent
b37db57bb9
commit
fa0d7d7529
@ -54,7 +54,7 @@ class NotificationManager:
|
||||
"""
|
||||
|
||||
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():
|
||||
|
Loading…
Reference in New Issue
Block a user