Skip to content

Commit

Permalink
Don't use threadsafe variant in signal_event (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
agners authored Jun 24, 2024
1 parent b979824 commit b21a6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matter_server/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def signal_event(self, evt: EventType, data: Any = None) -> None:
if asyncio.iscoroutinefunction(callback):
asyncio.create_task(callback(evt, data))
else:
self.loop.call_soon_threadsafe(callback, evt, data)
self.loop.call_soon(callback, evt, data)

def scope_ipv6_lla(self, ip_addr: str) -> str:
"""Scope IPv6 link-local addresses to primary interface.
Expand Down

0 comments on commit b21a6dd

Please sign in to comment.