We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdd260f commit e7d7463Copy full SHA for e7d7463
micropython/bluetooth/aioble/aioble/peripheral.py
@@ -60,6 +60,8 @@ def _peripheral_irq(event, data):
60
conn_handle, _, _ = data
61
if connection := DeviceConnection._connected.get(conn_handle, None):
62
# Tell the device_task that it should terminate.
63
+ if connection._event is None:
64
+ connection._event = asyncio.ThreadSafeFlag()
65
connection._event.set()
66
67
0 commit comments