Skip to content

Commit fd5775e

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io/socket/SocketIO.java

+1-1
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)