From 6db418fb4329cf1e9489c240a3b7face9b4ff6ac Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Fri, 1 Aug 2025 16:08:58 +0200 Subject: [PATCH] fix: exit behavior to be faster --- electron/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/main.ts b/electron/main.ts index 12ae2cb9a..24f060439 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -1,5 +1,4 @@ import { app } from 'electron'; -import { quitApp } from './various-shared'; import { startApp } from './start-app'; const IS_MAC = process.platform === 'darwin'; @@ -10,7 +9,8 @@ if (!IS_MAC) { const isLockObtained = app.requestSingleInstanceLock(); if (!isLockObtained) { console.log('EXITING due to failed single instance lock'); - quitApp(); + // Force immediate exit without waiting for graceful shutdown + process.exit(0); } else { console.log('Start app...'); startApp();