Fix shutdown with bad network connectivity

This commit is contained in:
Jamie Kyle 2024-02-16 12:40:38 -08:00 committed by GitHub
parent dd5b66039d
commit 41e44a8787
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 46 additions and 11 deletions

View file

@ -162,7 +162,7 @@ import { StartupQueue } from './util/StartupQueue';
import { showConfirmationDialog } from './util/showConfirmationDialog';
import { onCallEventSync } from './util/onCallEventSync';
import { sleeper } from './util/sleeper';
import { DAY, HOUR, MINUTE } from './util/durations';
import { DAY, HOUR, SECOND } from './util/durations';
import { copyDataMessageIntoMessage } from './util/copyDataMessageIntoMessage';
import {
flushMessageCounter,
@ -798,7 +798,7 @@ export async function startApp(): Promise<void> {
);
timeout = undefined;
resolve();
}, 1 * MINUTE);
}, 10 * SECOND);
}),
]);
if (timeout) {