don't write to a dead connection

fork
mscdex 12 years ago
parent 2b2bacfbca
commit 6532b25ca9

@ -1504,6 +1504,9 @@ ImapConnection.prototype._noop = function() {
};
ImapConnection.prototype._send = function(cmdstr, cb, bypass) {
if (!this._state.conn.writable)
return;
if (cmdstr !== undefined && !bypass) {
this._state.requests.push({
cmd: cmdstr.match(RE_CMD)[1],

Loading…
Cancel
Save