mirror of
https://github.com/google/bumble.git
synced 2026-04-18 00:45:32 +00:00
Use threadsafe call when setting event_loop_done
Previously, the close method would hang waiting on the future to be done.
This commit is contained in:
@@ -221,7 +221,7 @@ async def open_usb_transport(spec):
|
||||
pass
|
||||
|
||||
logger.debug('USB event loop done')
|
||||
self.event_loop_done.set_result(None)
|
||||
self.loop.call_soon_threadsafe(self.event_loop_done.set_result, None)
|
||||
|
||||
async def close(self):
|
||||
self.closed = True
|
||||
|
||||
Reference in New Issue
Block a user