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 32a235c commit a8a80a2
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 a8a80a2

Please sign in to comment.