explicitly wait for idle continuation before sending DONE

fork
mscdex 12 years ago
parent 835518ca89
commit 08ec773770

@ -1587,7 +1587,8 @@ ImapConnection.prototype._send = function(cmdstr, cb) {
}
if (idle.state !== IDLE_NONE && cmdstr !== 'DONE') {
if (cmdstr !== undefined && idle.state !== IDLE_DONE) {
if ((cmdstr !== undefined || reqs.length > 1)
&& idle.state === IDLE_IDLING) {
idle.state = IDLE_DONE;
this._send('DONE');
}

Loading…
Cancel
Save