🐛 无法退出
This commit is contained in:
parent
21f64b53ae
commit
f64773d88b
@ -258,13 +258,16 @@ export const stopFrpcProcess = (callback?: () => void) => {
|
||||
treeKill(frpcProcess.pid, (error: Error) => {
|
||||
if (error) {
|
||||
log.error(`关闭frpc子进程失败 pid:${frpcProcess.pid} error:${error}`)
|
||||
callback()
|
||||
} else {
|
||||
log.info(`关闭frpc子进程成功`)
|
||||
frpcProcess = null
|
||||
clearInterval(frpcStatusListener)
|
||||
callback()
|
||||
}
|
||||
callback()
|
||||
})
|
||||
} else {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -192,7 +192,7 @@ app.on("activate", () => {
|
||||
});
|
||||
|
||||
app.on('before-quit', () => {
|
||||
log.info("退出")
|
||||
log.info("before-quit")
|
||||
isQuiting = true;
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user