mirror of https://github.com/Chocobozzz/PeerTube
Don't throw when there is no error
parent
095094872a
commit
e111a5a3a1
|
@ -67,7 +67,9 @@ async function downloadWebTorrentVideo (target: { magnetUri: string, torrentName
|
||||||
pipeline(
|
pipeline(
|
||||||
file.createReadStream(),
|
file.createReadStream(),
|
||||||
writeStream,
|
writeStream,
|
||||||
err => rej(err)
|
err => {
|
||||||
|
if (err) rej(err)
|
||||||
|
}
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue