try to fix weiredness with pebble reconnects
This commit is contained in:
parent
5b21895283
commit
9b7f2c1e91
|
@ -396,6 +396,14 @@ public class PebbleIoThread extends GBDeviceIoThread {
|
|||
} catch (IOException ex) {
|
||||
ex.printStackTrace();
|
||||
LOG.info("error while reconnecting");
|
||||
} finally {
|
||||
try {
|
||||
if (mBtServerSocket != null) {
|
||||
mBtServerSocket.close();
|
||||
mBtServerSocket = null;
|
||||
}
|
||||
} catch (IOException ignore) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!mIsConnected) {
|
||||
|
|
Loading…
Reference in New Issue