aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-26 15:51:37 +0200
committerChocobozzz <me@florianbigard.com>2021-08-26 15:51:37 +0200
commite111a5a3a11a5b251b8989cd406c2dbba9254e28 (patch)
tree665064dded351c0aaa2adf01a4ef17c9bf35d456 /server
parent095094872a61ae534c115135c0789a73c741d704 (diff)
downloadPeerTube-e111a5a3a11a5b251b8989cd406c2dbba9254e28.tar.gz
PeerTube-e111a5a3a11a5b251b8989cd406c2dbba9254e28.tar.zst
PeerTube-e111a5a3a11a5b251b8989cd406c2dbba9254e28.zip
Don't throw when there is no error
Diffstat (limited to 'server')
-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