aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/webtorrent.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/webtorrent.ts')
-rw-r--r--server/helpers/webtorrent.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/helpers/webtorrent.ts b/server/helpers/webtorrent.ts
index bea76a46f..813ebc236 100644
--- a/server/helpers/webtorrent.ts
+++ b/server/helpers/webtorrent.ts
@@ -67,7 +67,9 @@ async function downloadWebTorrentVideo (target: { magnetUri: string, torrentName
67 pipeline( 67 pipeline(
68 file.createReadStream(), 68 file.createReadStream(),
69 writeStream, 69 writeStream,
70 err => rej(err) 70 err => {
71 if (err) rej(err)
72 }
71 ) 73 )
72 }) 74 })
73 75