headless: kill midi process on sigint, avoid the app to get zombified
This commit is contained in:
parent
e31a9acbd7
commit
c3cbe16c25
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,9 @@ var start = function(readyApp) {
|
|||
server.bindCallbacks(callbacks)
|
||||
|
||||
serverStarted = true
|
||||
process.on('exit',()=>{
|
||||
if (osc.midi) osc.midi.stop()
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue