Commit c4871829 authored by Raine Makelainen's avatar Raine Makelainen

Merge branch 'jb35328' into 'master'

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

See merge request mer-core/embedlite-components!35
parents 959bf4d9 b3542002
......@@ -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