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
1 changed files with 1 additions and 2 deletions

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