app: dont listen for disconnect events

This commit is contained in:
Jeffrey Morgan 2023-07-16 19:21:50 -07:00
parent 52ea4d4bb2
commit 9386073e96

View file

@ -102,11 +102,6 @@ function server() {
proc.on('exit', restart)
proc.on('disconnect', () => {
logger.info('Server disconnected. Reconnecting...')
server()
})
app.on('before-quit', () => {
proc.off('exit', restart)
proc.kill()