summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/fstream/lib/collect.js
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 6245e6ce49..e5d4f35833 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()