Bug spotted by @bnoordhuis while doing code review on #3534
Refs: https://github.com/nodejs/node/pull/3534#discussion_r43047477
PR-URL: https://github.com/nodejs/node/pull/3534
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
} else if (ws.needDrain) {
var self = this;
this.once('drain', function() {
- self.flush(callback);
+ self.flush(kind, callback);
});
} else {
this._flushFlag = kind;