app: use app.on('before-quit') to detect app closing

This commit is contained in:
Jeffrey Morgan 2023-07-16 19:18:04 -07:00
parent c4ba192187
commit 52ea4d4bb2

View file

@ -107,7 +107,7 @@ function server() {
server()
})
process.on('exit', () => {
app.on('before-quit', () => {
proc.off('exit', restart)
proc.kill()
})