♻️ 桌面端内核进程不再以游离模式拉起 https://github.com/siyuan-note/siyuan/issues/6336

This commit is contained in:
Liang Ding 2022-10-25 01:05:55 +08:00
parent eb168ed54c
commit 44374891e3
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -33,8 +33,11 @@ func HookResident() {
for range time.Tick(time.Second * 30) {
if 0 == util.CountSessions() {
logging.LogInfof("no active session, exit kernel process now")
Close(false, 1)
time.Sleep(time.Second * 7)
if 0 == util.CountSessions() {
logging.LogInfof("no active session, exit kernel process now")
Close(false, 1)
}
}
}
}