Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Fix on isConnected and disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
kido1611 committed Aug 11, 2016
1 parent b5166e9 commit 6d459d4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,12 @@ public void disconnected(){
mConnectedSocket.close();
} catch (IOException e) {
e.printStackTrace();
}finally(){
}finally{
mHandler.obtainMessage(ARDUINO_MSG_DISCONNECTED).sendToTarget();
}
}
}


public void sendMessage(String message){
if(mConnectedSocket!=null && mConnectedSocket.isConnected()){
try {
Expand Down

0 comments on commit 6d459d4

Please sign in to comment.