midi: make sure the process terminates when closing the app main window
This commit is contained in:
parent
8fbcdce320
commit
eaa0ef0651
3 changed files with 9 additions and 11 deletions
|
|
@ -29,6 +29,7 @@ var start = function(readyApp) {
|
|||
var win = require('./electron-window')({address:address, shortcuts:true})
|
||||
app.on('before-quit',()=>{
|
||||
win.destroy()
|
||||
if (osc.midi) osc.midi.stop()
|
||||
})
|
||||
return win
|
||||
} else {
|
||||
|
|
@ -36,6 +37,7 @@ var start = function(readyApp) {
|
|||
var win = require('./electron-window')({address:address, shortcuts:true})
|
||||
app.on('before-quit',()=>{
|
||||
win.destroy()
|
||||
if (osc.midi) osc.midi.stop()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue