diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/helpers/webtorrent.ts | 4 |
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 | ||