Skip to content

Commit

Permalink
Merge pull request codebutler#14 from orenda/patch-1
Browse files Browse the repository at this point in the history
Update SocketIOClient.java - onError failed on nullPointerException
  • Loading branch information
koush committed May 20, 2013
2 parents 96ae660 + dad5c6f commit 5408843
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 @@ -267,7 +267,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 5408843

Please sign in to comment.