diff --git a/packages/neuron-wallet/src/main.ts b/packages/neuron-wallet/src/main.ts index a65b386bea..182eabd076 100644 --- a/packages/neuron-wallet/src/main.ts +++ b/packages/neuron-wallet/src/main.ts @@ -16,9 +16,11 @@ if (singleInstanceLock) { appController.start() }) - app.on('before-quit', async () => { + app.on('before-quit', async e => { logger.info('App:\tNeuron will exit') + e.preventDefault() await appController.end() + app.exit() }) app.on('activate', appController.openWindow)