mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-12 10:55:49 +01:00
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…
x
Reference in New Issue
Block a user