mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +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:
|
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
|
@staticmethod
|
||||||
def reset():
|
def reset():
|
||||||
|
Loading…
Reference in New Issue
Block a user