From fa27c5634b4e0bd1699eca526d415147fe334107 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Mon, 26 Oct 2015 14:39:05 -0700 Subject: [PATCH] zlib: pass kind to recursive calls to flush Bug spotted by @bnoordhuis while doing code review on #3534 Refs: https://github.com/nodejs/node/pull/3534#discussion_r43047477 PR-URL: https://github.com/nodejs/node/pull/3534 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell --- lib/zlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zlib.js b/lib/zlib.js index c6c024220bbbfd..996d1116ee728d 100644 --- a/lib/zlib.js +++ b/lib/zlib.js @@ -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;