Skip to content

Commit

Permalink
zlib: pass kind to recursive calls to flush
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Myles Borins authored and rvagg committed Dec 4, 2015
1 parent 688ad38 commit 97e6504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 97e6504

Please sign in to comment.