♻️ 桌面端内核进程不再以游离模式拉起 https://github.com/siyuan-note/siyuan/issues/6336
This commit is contained in:
parent
eb168ed54c
commit
44374891e3
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue