fix(updater): opt macos electron updator (#187)

This commit is contained in:
Haze
2026-02-26 17:08:21 +08:00
committed by GitHub
Unverified
parent 9ff0eb81fd
commit a14552a474
2 changed files with 15 additions and 32 deletions

View File

@@ -231,9 +231,7 @@ app.on('window-all-closed', () => {
app.on('before-quit', () => {
isQuitting = true;
// Fire-and-forget: do not await gatewayManager.stop() here.
// Awaiting inside a before-quit handler can stall Electron's
// replyToApplicationShouldTerminate: call when the quit is initiated
// by Squirrel.Mac (quitAndInstall), preventing the app from ever exiting.
// Awaiting inside before-quit can stall Electron's quit sequence.
void gatewayManager.stop().catch((err) => {
logger.warn('gatewayManager.stop() error during quit:', err);
});