Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Commit 50b43d0

Browse files
committed
large file exporter fix
1 parent 5df8cbc commit 50b43d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exporter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ function exporter (hash, dagService, options, callback) {
5858
}
5959
return
6060
} else {
61-
ee.emit('file', { stream: rs, path: name, dir: dir })
6261
init = false
6362
rs._read = () => {
6463
if (init) {
@@ -88,6 +87,7 @@ function exporter (hash, dagService, options, callback) {
8887
return
8988
})
9089
}
90+
ee.emit('file', { stream: rs, path: name, dir: dir })
9191
}
9292
}
9393

0 commit comments

Comments
 (0)