diff options
Diffstat (limited to 'deps/npm/node_modules/fstream/lib/collect.js')
-rw-r--r-- | deps/npm/node_modules/fstream/lib/collect.js | 2 |
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() |