Browse Source

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 <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
process-exit-stdio-flushing
Myles Borins 9 years ago
committed by James M Snell
parent
commit
fa27c5634b
  1. 2
      lib/zlib.js

2
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;

Loading…
Cancel
Save