Skip to content

Commit d70deab

Browse files
Myles BorinsFishrock123
Myles Borins
authored andcommitted
zlib: pass kind to recursive calls to flush
Bug spotted by @bnoordhuis while doing code review on #3534 Refs: #3534 (comment) PR-URL: #3534 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent de707f0 commit d70deab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zlib.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ Zlib.prototype.flush = function(kind, callback) {
446446
} else if (ws.needDrain) {
447447
var self = this;
448448
this.once('drain', function() {
449-
self.flush(callback);
449+
self.flush(kind, callback);
450450
});
451451
} else {
452452
this._flushFlag = kind;

0 commit comments

Comments
 (0)