Skip to content

Commit fd5775e

Browse files
author
tox
committed
fixing issue Gottox#30
1 parent 2a8c757 commit fd5775e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/io/socket/SocketIO.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public void reconnect() {
340340
* not connected or currently connecting
341341
*/
342342
public boolean isConnected() {
343-
return this.connection.isConnected();
343+
return this.connection != null && this.connection.isConnected();
344344
}
345345

346346
/**

0 commit comments

Comments
 (0)