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 Fishrock123 committed Nov 17, 2015
1 parent de707f0 commit d70deab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zlib.js
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 d70deab

Please sign in to comment.