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