mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 18:15:49 +01:00
Pebble: fix stupid bug that broke active reconnection
This commit is contained in:
parent
85bad9abf5
commit
59d6553c54
@ -362,7 +362,7 @@ public class PebbleIoThread extends GBDeviceIoThread {
|
||||
if (reconnectAttempts > 0) {
|
||||
gbDevice.setState(GBDevice.State.CONNECTING);
|
||||
gbDevice.sendDeviceUpdateIntent(getContext());
|
||||
while (reconnectAttempts-- > 0 && !mQuit) {
|
||||
while (reconnectAttempts-- > 0 && !mQuit && !mIsConnected) {
|
||||
LOG.info("Trying to reconnect (attempts left " + reconnectAttempts + ")");
|
||||
mIsConnected = connect(gbDevice.getAddress());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user