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/5837
This commit is contained in:
parent
8f6ffd4dcd
commit
313143304b
7 changed files with 83 additions and 20 deletions
|
|
@ -34,7 +34,7 @@ func HookResident() {
|
|||
for range time.Tick(time.Second * 30) {
|
||||
if 0 == util.CountSessions() {
|
||||
logging.LogInfof("no active session, exit kernel process now")
|
||||
Close(false)
|
||||
Close(false, 2)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -44,5 +44,5 @@ func HandleSignal() {
|
|||
signal.Notify(c, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGTERM)
|
||||
s := <-c
|
||||
logging.LogInfof("received os signal [%s], exit kernel process now", s)
|
||||
Close(false)
|
||||
Close(false, 2)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue