Merge branch 'master' of github.com:nkzawa/socket.io-client.java
This commit is contained in:
@@ -382,7 +382,8 @@ public class Manager extends Emitter {
|
||||
|
||||
/*package*/ void destroy(Socket socket) {
|
||||
--this.connected;
|
||||
if (this.connected == 0) {
|
||||
if (this.connected <= 0) {
|
||||
this.connected = 0;
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user