Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/fstream/lib/collect.js')
-rw-r--r--deps/npm/node_modules/fstream/lib/collect.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/npm/node_modules/fstream/lib/collect.js b/deps/npm/node_modules/fstream/lib/collect.js
index 6245e6ce492..e5d4f358334 100644
--- a/deps/npm/node_modules/fstream/lib/collect.js
+++ b/deps/npm/node_modules/fstream/lib/collect.js
@@ -3,6 +3,8 @@ module.exports = collect
function collect (stream) {
if (stream._collected) return
+ if (stream._paused) return stream.on('resume', collect.bind(null, stream))
+
stream._collected = true
stream.pause()