Commit 9386073e authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

app: dont listen for `disconnect` events

parent 52ea4d4b
...@@ -102,11 +102,6 @@ function server() { ...@@ -102,11 +102,6 @@ function server() {
proc.on('exit', restart) proc.on('exit', restart)
proc.on('disconnect', () => {
logger.info('Server disconnected. Reconnecting...')
server()
})
app.on('before-quit', () => { 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