diff --git a/src/exporter.js b/src/exporter.js index 1764bcdb..5458d706 100644 --- a/src/exporter.js +++ b/src/exporter.js @@ -58,7 +58,6 @@ function exporter (hash, dagService, options, callback) { } return } else { - ee.emit('file', { stream: rs, path: name, dir: dir }) init = false rs._read = () => { if (init) { @@ -88,6 +87,7 @@ function exporter (hash, dagService, options, callback) { return }) } + ee.emit('file', { stream: rs, path: name, dir: dir }) } }