app: dont listen for disconnect
events
This commit is contained in:
parent
52ea4d4bb2
commit
9386073e96
1 changed files with 0 additions and 5 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue