mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 21:06:50 +01:00
Pebble: close TCP socket when disconnecting from emulator. Prevents hang.
This commit is contained in:
parent
a1cb246e27
commit
2b0acd649b
@ -502,6 +502,13 @@ public class PebbleIoThread extends GBDeviceIoThread {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
if (mTCPSocket != null) {
|
||||
try {
|
||||
mTCPSocket.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private enum PebbleAppInstallState {
|
||||
|
Loading…
Reference in New Issue
Block a user