1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-20 12:00:51 +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:
cpfeiffer 2015-05-28 23:26:17 +02:00
parent 7f89f4bb57
commit 5d950dc407

View File

@ -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) {