mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix: exit behavior to be faster
This commit is contained in:
parent
d6bf81579d
commit
6db418fb43
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue