fix: exit behavior to be faster

This commit is contained in:
Johannes Millan 2025-08-01 16:08:58 +02:00
parent d6bf81579d
commit 6db418fb43

View file

@ -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();