From d1cedbd9816c72373d454c116e6adb6c0c7af894 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;