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 nodejs#3534

Refs: nodejs#3534 (comment)
PR-URL: nodejs#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 Nov 14, 2015
1 parent 8ac852f commit fa27c56
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 fa27c56

Please sign in to comment.