mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Donations: Introduce timeouts in early stages of the workflow
This commit is contained in:
@@ -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),
|
||||
]);
|
||||
|
||||
@@ -885,7 +885,7 @@ async function createWindow() {
|
||||
);
|
||||
}
|
||||
if (!shouldClose) {
|
||||
updater.onRestartCancelled();
|
||||
updater.onRestartCanceled();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user