Pārlūkot izejas kodu

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

Jeffrey Morgan 1 gadu atpakaļ
vecāks
revīzija
52ea4d4bb2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/src/index.ts

+ 1 - 1
app/src/index.ts

@@ -107,7 +107,7 @@ function server() {
     server()
   })
 
-  process.on('exit', () => {
+  app.on('before-quit', () => {
     proc.off('exit', restart)
     proc.kill()
   })