Commit 52ea4d4b authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

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

parent c4ba1921
...@@ -107,7 +107,7 @@ function server() { ...@@ -107,7 +107,7 @@ function server() {
server() server()
}) })
process.on('exit', () => { app.on('before-quit', () => {
proc.off('exit', restart) proc.off('exit', restart)
proc.kill() proc.kill()
}) })
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment