mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 12:28:48 +01:00
🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113
This commit is contained in:
parent
801bc69820
commit
7e014cb525
7 changed files with 27 additions and 15 deletions
|
|
@ -393,6 +393,7 @@ var exitLock = sync.Mutex{}
|
|||
func Close(force bool, execInstallPkg int) (exitCode int) {
|
||||
exitLock.Lock()
|
||||
defer exitLock.Unlock()
|
||||
util.IsExiting = true
|
||||
|
||||
logging.LogInfof("exiting kernel [force=%v, execInstallPkg=%d]", force, execInstallPkg)
|
||||
util.PushMsg(Conf.Language(95), 10000*60)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue