Pebble 2/LE: fix another bug when reconnecting

here
Andreas Shimokawa 2016-12-01 00:28:23 +01:00
parent 2993bb6b5c
commit f0789cc147
1 changed files with 8 additions and 8 deletions

View File

@ -57,6 +57,14 @@ public class PebbleLESupport {
mPebbleGATTClient.close();
mPebbleGATTClient = null;
}
try {
mPipedInputStream.close();
} catch (IOException ignore) {
}
try {
mPipedOutputStream.close();
} catch (IOException ignore) {
}
}
synchronized void createPipedInputReader() {
@ -78,14 +86,6 @@ public class PebbleLESupport {
}
mPipeReader = null;
}
try {
mPipedInputStream.close();
} catch (IOException ignore) {
}
try {
mPipedOutputStream.close();
} catch (IOException ignore) {
}
}
void setMTU(int mtu) {