mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 15:59:49 +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();
|
homeServer.start();
|
||||||
|
|
||||||
|
// make sure we stop child processes on app quit
|
||||||
|
app.on('quit', function(){
|
||||||
|
pInterface.stop();
|
||||||
|
homeServer.stop();
|
||||||
|
})
|
||||||
|
|
||||||
var processes = {
|
var processes = {
|
||||||
interface: pInterface,
|
interface: pInterface,
|
||||||
home: homeServer
|
home: homeServer
|
||||||
|
|
Loading…
Reference in a new issue