From 2f3ac32766a9e0e0344d417f495a593a609bc2d2 Mon Sep 17 00:00:00 2001 From: Zane <75694352+zanesq@users.noreply.github.com> Date: Mon, 16 Jun 2025 15:38:40 -0700 Subject: [PATCH] [fix] goose not quitting app completely (#2950) --- ui/desktop/src/main.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/desktop/src/main.ts b/ui/desktop/src/main.ts index 70666c33..380cf20f 100644 --- a/ui/desktop/src/main.ts +++ b/ui/desktop/src/main.ts @@ -1811,8 +1811,10 @@ app.on('before-quit', async (event) => { // User clicked "Quit" // Set a flag to avoid showing the dialog again app.removeAllListeners('before-quit'); - // Actually quit the app - app.quit(); + // Force quit the app + process.nextTick(() => { + app.exit(0); + }); } } catch (error) { console.error('Error showing quit dialog:', error);