zlib: pass kind to recursive calls to flush
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>
This commit is contained in:
parent
8ac852fec0
commit
fa27c5634b
@ -446,7 +446,7 @@ Zlib.prototype.flush = function(kind, callback) {
|
||||
} else if (ws.needDrain) {
|
||||
var self = this;
|
||||
this.once('drain', function() {
|
||||
self.flush(callback);
|
||||
self.flush(kind, callback);
|
||||
});
|
||||
} else {
|
||||
this._flushFlag = kind;
|
||||
|
Loading…
x
Reference in New Issue
Block a user