diff --git a/shell/main.js b/shell/main.js index 2e65c96..aae109d 100644 --- a/shell/main.js +++ b/shell/main.js @@ -145,7 +145,8 @@ app.on('window-all-closed', function () { if(process.platform === 'darwin') { app.on('before-quit', function () { app.isQuiting = true; - walletWindow.hide(); + if(walletWindow) + walletWindow.hide(); core.kill('SIGINT'); setTimeout(function () { process.exit(0);