Donations: Introduce timeouts in early stages of the workflow

This commit is contained in:
Scott Nonnenberg
2025-07-31 07:15:59 +10:00
committed by GitHub
parent 7ef40c64c4
commit fd794ae90d
42 changed files with 198 additions and 109 deletions

View File

@@ -159,7 +159,7 @@ async function safeDecryptToSink(
await Promise.race([
// Just use a non-existing event name to wait for an 'error'. We want
// to handle errors on `sink` while generating digest in case the whole
// request gets cancelled early.
// request gets canceled early.
once(sink, 'non-error-event', { signal: controller.signal }),
decryptAttachmentV2ToSink(options, sink),
]);

View File

@@ -885,7 +885,7 @@ async function createWindow() {
);
}
if (!shouldClose) {
updater.onRestartCancelled();
updater.onRestartCanceled();
return;
}