From 5d950dc407edf9544a781db53a2c8715da8f2e90 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Thu, 28 May 2015 23:26:17 +0200 Subject: [PATCH] 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. --- .../nodomain/freeyourgadget/gadgetbridge/btle/BtLEQueue.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/btle/BtLEQueue.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/btle/BtLEQueue.java index c5126024..6e6228ba 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/btle/BtLEQueue.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/btle/BtLEQueue.java @@ -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) {