mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-10 15:44:32 +00:00
catch interretuptedexception during join
This commit is contained in:
parent
2001ebf1de
commit
76b4a2b4c3
@ -122,7 +122,12 @@ public class BTstackClient {
|
||||
// signal rx thread to stop
|
||||
rxThread.interrupt();
|
||||
// wait for thread stopped
|
||||
rxThread.join();
|
||||
try {
|
||||
rxThread.join();
|
||||
} catch (InterruptedException e){
|
||||
System.out.println("Unexpected interrupted execption waiting for receive thread to terminate");
|
||||
e.printStackTrace();
|
||||
}
|
||||
// disconnect socket
|
||||
socketConnection.disconnect();
|
||||
// done
|
||||
|
Loading…
x
Reference in New Issue
Block a user