Skip to content

Commit

Permalink
fix(downloadSequence): progress mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Oct 5, 2024
1 parent 86368c6 commit fb9a612
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export default class DownloadEngineMultiDownload<Engine extends DownloadEngineMu

this._progressStatisticsBuilder.add(...this.downloads);
this._progressStatisticsBuilder.on("progress", progress => {
progress.downloadFlags = progress.downloadFlags.concat([DownloadFlags.DownloadSequence]);
progress = {
...progress,
downloadFlags: progress.downloadFlags.concat([DownloadFlags.DownloadSequence])
};
this.emit("progress", progress);
});
}
Expand Down

0 comments on commit fb9a612

Please sign in to comment.