-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bluezdbus/client: add retry on le-connection-abort-by-local
Since BlueZ 6.62, BlueZ has a new connection error "le-connection-abort-by-local" that is seen quite frequently, particularly when there are many BLE devices in the area. Reconnecting immediately after receiving this error is generally successful, so we add an automatic retry in the BleakClient. This is a bit tricky because the device does actually connect in this case and we receive D-Bus property changes indicating this, so we have to be careful about waiting for the disconnect event before trying again. Fixes: #1220
- Loading branch information
Showing
1 changed file
with
152 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters