mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
fix null logWindow closure during shutdown
This commit is contained in:
parent
88604a0110
commit
7be6a4aaf9
1 changed files with 3 additions and 8 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue