headless: kill midi process on sigint, avoid the app to get zombified

This commit is contained in:
jean-emmanuel 2017-03-07 10:37:11 +01:00
parent e31a9acbd7
commit c3cbe16c25

View file

@ -18,6 +18,9 @@ var start = function(readyApp) {
server.bindCallbacks(callbacks)
serverStarted = true
process.on('exit',()=>{
if (osc.midi) osc.midi.stop()
})
}