Skip to content

Commit

Permalink
Update SocketIOClient.java
Browse files Browse the repository at this point in the history
  • Loading branch information
orenda committed May 8, 2013
1 parent 84119d1 commit dad5c6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/codebutler/android_websockets/SocketIOClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ public void disconnect() throws IOException {
}

private void cleanup() {
mClient.disconnect();
if (mClient != null)
mClient.disconnect();
mClient = null;

mSendLooper.quit();
Expand Down

0 comments on commit dad5c6f

Please sign in to comment.