Sfoglia il codice sorgente

app: dont listen for `disconnect` events

Jeffrey Morgan 1 anno fa
parent
commit
9386073e96
1 ha cambiato i file con 0 aggiunte e 5 eliminazioni
  1. 0 5
      app/src/index.ts

+ 0 - 5
app/src/index.ts

@@ -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()