1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 02:25:50 +01:00

Pebble: fix stupid bug that broke active reconnection

This commit is contained in:
Andreas Shimokawa 2016-02-06 19:35:49 +01:00
parent 85bad9abf5
commit 59d6553c54

View File

@ -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());
}