From d1291f67551c58168af43698a359cb5ddfd266b0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 3 Nov 2016 01:33:53 +0100 Subject: node_modules --- node_modules/duplexify/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'node_modules/duplexify/index.js') diff --git a/node_modules/duplexify/index.js b/node_modules/duplexify/index.js index 377eb60ad..a04f124fa 100644 --- a/node_modules/duplexify/index.js +++ b/node_modules/duplexify/index.js @@ -158,7 +158,8 @@ Duplexify.prototype._forward = function() { var data - while ((data = shift(this._readable2)) !== null) { + while (this._drained && (data = shift(this._readable2)) !== null) { + if (this.destroyed) continue this._drained = this.push(data) } -- cgit v1.2.3