catch interretuptedexception during join

This commit is contained in:
matthias.ringwald@gmail.com 2015-01-11 22:25:00 +00:00
parent 2001ebf1de
commit 76b4a2b4c3

View File

@ -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