Merge pull request 'fixed crash on download cancel' (#1) from uhwot/deemix-js:cancel-crash-fix into main

Reviewed-on: https://git.freezer.life/RemixDev/deemix-js/pulls/1
This commit is contained in:
RemixDev 2021-06-23 08:43:45 -04:00
commit 5cf38bedde

View file

@ -509,7 +509,9 @@ class Downloader {
errid: e.errid,
data: itemData
}}
} else if (! (e instanceof DownloadCanceled)){
} else if (e instanceof DownloadCanceled){
return
} else {
console.trace(e)
result = {error:{
message: e.message,