From 53f28b625bdeda572f0cb9fca3c93e32cc077efa Mon Sep 17 00:00:00 2001 From: Sergey Martynov Date: Fri, 13 Feb 2015 17:20:04 +0300 Subject: [PATCH] handle slowly progressing streams --- lib/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse.js b/lib/parse.js index 69fc2c4..a34391c 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -158,8 +158,8 @@ Parse.prototype._readFile = function () { } this.push(buf); } + self._pullStream.unpipe(); setImmediate(function() { - self._pullStream.unpipe(); self._pullStream.prepend(extra); self._processDataDescriptor(entry); });