Skip to content

Commit

Permalink
Merge pull request #1528 from canalplus/fix/reload-reload
Browse files Browse the repository at this point in the history
Fix issue when reloading while a reload is pending.
  • Loading branch information
peaBerberian authored Sep 5, 2024
2 parents 430e187 + 1ce1608 commit cdb1ee0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/main/worker/worker_main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,10 @@ function loadOrReloadPreparedContent(
);
},
(err: unknown) => {
if (TaskCanceller.isCancellationError(err)) {
log.info("WP: A reloading operation was cancelled");
return;
}
sendMessage({
type: WorkerMessageType.Error,
contentId,
Expand Down

0 comments on commit cdb1ee0

Please sign in to comment.