From ce7039a2092dc3e89db39f26d15bdb013a6abc19 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 a10d911..1151b2c 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; -- 2.7.4