Skip to content

Commit

Permalink
Fix issue when reloading while a reload is pending.
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Sep 5, 2024
1 parent 1d338c6 commit 59630c1
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 @@ -923,6 +923,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 59630c1

Please sign in to comment.