Skip to content

Commit

Permalink
fixing issue Gottox#30
Browse files Browse the repository at this point in the history
  • Loading branch information
tox committed Oct 1, 2012
1 parent 2a8c757 commit fd5775e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/socket/SocketIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public void reconnect() {
* not connected or currently connecting
*/
public boolean isConnected() {
return this.connection.isConnected();
return this.connection != null && this.connection.isConnected();
}

/**
Expand Down

0 comments on commit fd5775e

Please sign in to comment.