Removed check for current request on EXPUNGE so event is always emitted.

fork
Raoul Wissink 11 years ago
parent 10634c66bb
commit 1ecec69b00

@ -1140,8 +1140,7 @@ Connection.prototype._resUntagged = function(info) {
if (this._box) {
if (this._box.messages.total > 0)
--this._box.messages.total;
if (!this._curReq)
this.emit('expunge', info.num);
this.emit('expunge', info.num);
}
} else if (type === 'ok') {
if (this.state === 'connected' && !this._curReq)

Loading…
Cancel
Save