From d70deabf90cf221083e275ec9647e3c8eeb661b6 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 a10d9118d6194e..1151b2cb88c07b 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;