app: use app.on('before-quit')
to detect app closing
This commit is contained in:
parent
c4ba192187
commit
52ea4d4bb2
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ function server() {
|
|||
server()
|
||||
})
|
||||
|
||||
process.on('exit', () => {
|
||||
app.on('before-quit', () => {
|
||||
proc.off('exit', restart)
|
||||
proc.kill()
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue