1
0
Fork 0

Don't throw when there is no error

This commit is contained in:
Chocobozzz 2021-08-26 15:51:37 +02:00
parent 095094872a
commit e111a5a3a1
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ async function downloadWebTorrentVideo (target: { magnetUri: string, torrentName
pipeline(
file.createReadStream(),
writeStream,
err => rej(err)
err => {
if (err) rej(err)
}
)
})