mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-16 10:30:59 +02: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) {
|
} catch (IOException ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
LOG.info("error while reconnecting");
|
LOG.info("error while reconnecting");
|
||||||
|
} finally {
|
||||||
|
try {
|
||||||
|
if (mBtServerSocket != null) {
|
||||||
|
mBtServerSocket.close();
|
||||||
|
mBtServerSocket = null;
|
||||||
|
}
|
||||||
|
} catch (IOException ignore) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!mIsConnected) {
|
if (!mIsConnected) {
|
||||||
|
Loading…
Reference in New Issue
Block a user