detect socket closed error
This commit is contained in:
parent
49d6690450
commit
0ad856bed1
1 changed files with 5 additions and 1 deletions
|
@ -203,7 +203,11 @@ public class ExecutionService extends Service {
|
||||||
try {
|
try {
|
||||||
mRfcommSocket.connect();
|
mRfcommSocket.connect();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
//e.printStackTrace();
|
||||||
|
if (e.getMessage().contains("socket closed")) {
|
||||||
|
e.printStackTrace();
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
waitMsec(1000);
|
waitMsec(1000);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue