fix reconnection option

This commit is contained in:
Naoyuki Kanezawa
2013-08-04 14:59:44 +09:00
parent 9bb5d366ce
commit 2a7841b587
3 changed files with 14 additions and 17 deletions

View File

@@ -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;

View File

@@ -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();
}
}