mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Fix reconnection after connection loss
Well, obviously we must not ignore connection state changes even if they come with an error code. Unfortunately the API docs are a bit terse in that respect.
This commit is contained in:
@@ -242,8 +242,7 @@ public final class BtLEQueue {
|
||||
}
|
||||
|
||||
if (status != BluetoothGatt.GATT_SUCCESS) {
|
||||
LOG.warn("ignoring connection state event with status " + status);
|
||||
return;
|
||||
LOG.warn("connection state event with error status " + status);
|
||||
}
|
||||
|
||||
switch (newState) {
|
||||
|
Reference in New Issue
Block a user