Skip to content

Commit

Permalink
Use call_soon_threadsafe() in notification manager
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj authored Nov 18, 2024
1 parent b37db57 commit fa0d7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gns3server/compute/notification_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit fa0d7d7

Please sign in to comment.