mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
BTBR: Fix stuck reconnection on null socket
This commit is contained in:
@@ -145,6 +145,8 @@ public final class BtBRQueue {
|
||||
} catch (IOException e) {
|
||||
LOG.error("IO exception while establishing socket connection: ", e);
|
||||
|
||||
cleanup();
|
||||
|
||||
if (!GBApplication.getPrefs().getAutoReconnect(mGbDevice)) {
|
||||
mGbDevice.setUpdateState(GBDevice.State.NOT_CONNECTED, mContext);
|
||||
} else {
|
||||
@@ -153,6 +155,8 @@ public final class BtBRQueue {
|
||||
} catch (SecurityException e) {
|
||||
LOG.error("Security exception while establishing socket connection: ", e);
|
||||
|
||||
cleanup();
|
||||
|
||||
if (!GBApplication.getPrefs().getAutoReconnect(mGbDevice)) {
|
||||
mGbDevice.setUpdateState(GBDevice.State.NOT_CONNECTED, mContext);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user