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
1 changed files with 7 additions and 0 deletions

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 {