Ensure Bluetooth notifies can safely be cancelled after disconnect

This commit is contained in:
J. Nick Koston 2023-11-26 15:28:07 -06:00
parent 8e86fad242
commit d3f1d7b609
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -1215,6 +1215,7 @@ async def test_bluetooth_gatt_start_notify(
# and doesn't raise
abort_cb()
await client.disconnect(force=True)
client._connection = None
# Ensure abort callback is a no-op after disconnect
# and does not raise
await cancel_cb()