Merge pull request #287 from raoulwissink/master

Fixed broken EXPUNGE event
fork
Brian White 11 years ago
commit f2010896e9

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