diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java index 79b56c1e2..281995296 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java @@ -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 {