From fb9a612b814528bf79e53ecf22a64382c201cdbf Mon Sep 17 00:00:00 2001 From: ido Date: Sat, 5 Oct 2024 23:05:22 +0300 Subject: [PATCH] fix(downloadSequence): progress mutation --- .../download-engine/engine/download-engine-multi-download.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/download/download-engine/engine/download-engine-multi-download.ts b/src/download/download-engine/engine/download-engine-multi-download.ts index be35311..f3b42df 100644 --- a/src/download/download-engine/engine/download-engine-multi-download.ts +++ b/src/download/download-engine/engine/download-engine-multi-download.ts @@ -58,7 +58,10 @@ export default class DownloadEngineMultiDownload { - progress.downloadFlags = progress.downloadFlags.concat([DownloadFlags.DownloadSequence]); + progress = { + ...progress, + downloadFlags: progress.downloadFlags.concat([DownloadFlags.DownloadSequence]) + }; this.emit("progress", progress); }); }