mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
♻️ 桌面端内核进程不再以游离模式拉起 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
|
|
@ -32,11 +32,14 @@ func HookResident() {
|
|||
}
|
||||
|
||||
for range time.Tick(time.Second * 30) {
|
||||
if 0 == util.CountSessions() {
|
||||
time.Sleep(time.Second * 7)
|
||||
if 0 == util.CountSessions() {
|
||||
logging.LogInfof("no active session, exit kernel process now")
|
||||
Close(false, 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func HandleSignal() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue