stop processes on application quit

This commit is contained in:
Stephen Birarda 2015-12-03 14:24:01 -08:00
parent 66b3aeeeba
commit d3d59b365f

View file

@ -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