1
0
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:
Andreas Shimokawa 2015-08-21 13:18:53 +02:00
parent a1cb246e27
commit 2b0acd649b

View File

@ -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 {