fix(download): crash on download page click in some cases #34

This commit is contained in:
Alexey Kasyanchuk
2018-06-19 00:20:52 +03:00
parent 9adebf8d4d
commit 44efa6138e
3 changed files with 6 additions and 2 deletions

View File

@ -626,6 +626,7 @@ module.exports = async ({
torrentClient.remove(id, (err) => {
if(err)
{
console.log('download removing error', err)
if(callback)
callback(false)
return