fix reconnection option
This commit is contained in:
@@ -80,7 +80,7 @@ public class IO {
|
||||
*/
|
||||
public boolean multiplex = true;
|
||||
|
||||
public boolean reconnection;
|
||||
public boolean reconnection = true;
|
||||
public int reconnectionAttempts;
|
||||
public long reconnectionDelay;
|
||||
public long reconnectionDelayMax;
|
||||
|
||||
@@ -321,7 +321,7 @@ public class Manager extends Emitter {
|
||||
private void onclose() {
|
||||
this.cleanup();
|
||||
this.readyState = ReadyState.CLOSED;
|
||||
if (!this.skipReconnect) {
|
||||
if (this._reconnection && !this.skipReconnect) {
|
||||
this.reconnect();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user