Pebble: fix stupid bug that broke active reconnection
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