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 <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Myles Borins authored and jasnell committed Dec 17, 2015
1 parent cf4b65c commit 4733a60
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 4733a60

Please sign in to comment.