Reset some more state variables

fork
Brian White 12 years ago
parent a34bb71ce3
commit 8db9bccc72

@ -1224,10 +1224,13 @@ ImapConnection.prototype._reset = function() {
clearTimeout(this._state.tmrKeepalive);
clearTimeout(this._state.tmrConn);
this._state.status = STATES.NOCONNECT;
this._state.numCapRecvs = 0;
this._state.curId = 0;
this._state.requests = [];
this._state.isIdle = true;
this._state.numCapRecvs = 0;
this._state.isReady = false;
this._state.isIdle = true;
this._state.tmrKeepalive = null;
this._state.tmrConn = null;
this._state.ext.idle.state = IDLE_NONE;
this._state.ext.idle.timeWaited = 0;
@ -1242,6 +1245,7 @@ ImapConnection.prototype._reset = function() {
this.namespaces = { personal: [], other: [], shared: [] };
this.delimiter = undefined;
this.capabilities = [];
this._resetBox();
};

Loading…
Cancel
Save