mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
stop processes on application quit
This commit is contained in:
parent
66b3aeeeba
commit
d3d59b365f
1 changed files with 6 additions and 0 deletions
|
@ -91,6 +91,12 @@ app.on('ready', function() {
|
|||
]);
|
||||
homeServer.start();
|
||||
|
||||
// make sure we stop child processes on app quit
|
||||
app.on('quit', function(){
|
||||
pInterface.stop();
|
||||
homeServer.stop();
|
||||
})
|
||||
|
||||
var processes = {
|
||||
interface: pInterface,
|
||||
home: homeServer
|
||||
|
|
Loading…
Reference in a new issue