From caa2ef81f34cb339f6bfbb75ac00f6c770a58220 Mon Sep 17 00:00:00 2001 From: uh wot Date: Thu, 17 Jun 2021 21:59:15 +0200 Subject: [PATCH] fixed crash on download cancel --- deemix/downloader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deemix/downloader.js b/deemix/downloader.js index 1b13bdb..d4afb1a 100644 --- a/deemix/downloader.js +++ b/deemix/downloader.js @@ -504,7 +504,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,