mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-01 18:59:14 +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:
parent
7f89f4bb57
commit
5d950dc407
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user