🎨 改进桌面端监控前端界面进程退出钩子

This commit is contained in:
Liang Ding 2023-02-02 19:55:35 +08:00
parent 88c478dc72
commit 4c6b61cc37
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -86,8 +86,11 @@ func HookDesktopUIProcJob() {
return true
})
if 1 < noUIProcCount {
logging.LogInfof("no active UI proc, exit kernel process now")
Close(false, 1)
if 0 < noUIProcCount {
logging.LogInfof("no active UI proc count [%d]", noUIProcCount)
if 1 < noUIProcCount {
logging.LogInfof("confirmed no active UI proc, exit kernel process now")
Close(false, 1)
}
}
}