Pebble 2/LE: fix another bug when reconnecting
This commit is contained in:
parent
2993bb6b5c
commit
f0789cc147
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue