fix null logWindow closure during shutdown

This commit is contained in:
Stephen Birarda 2016-01-18 11:13:16 -08:00
parent 88604a0110
commit 7be6a4aaf9

View file

@ -71,6 +71,9 @@ function shutdown() {
});
if (idx == 0) {
isShuttingDown = true;
userConfig.save(configPath);
if (logWindow) {
logWindow.close();
}
@ -521,14 +524,6 @@ app.on('ready', function() {
homeServer = new ProcessGroup('home', [domainServer, acMonitor]);
logWindow = new LogWindow(acMonitor, domainServer);
// make sure we stop child processes on app quit
app.on('quit', function(){
console.log('App quitting');
userConfig.save(configPath);
logWindow.close();
homeServer.stop();
});
var processes = {
home: homeServer
};