Commit b3542002 authored by Raine Makelainen's avatar Raine Makelainen

[embedlite-components] Ensure that download is stopped and any partial data removed. Fixes JB#35328

parent 959bf4d9
......@@ -193,7 +193,8 @@ EmbedliteDownloadManager.prototype = {
case "cancelDownload":
for (var key in DownloadView.prevState) {
if (DownloadView.prevState[key].id === data.id) {
DownloadView.prevState[key].download.cancel();
// Finalization does cancel and remove partially downloaded data.
DownloadView.prevState[key].download.finalize(true);
}
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment