🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113

This commit is contained in:
Liang Ding 2023-01-24 14:14:27 +08:00
parent 801bc69820
commit 7e014cb525
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
7 changed files with 27 additions and 15 deletions

View file

@ -104,6 +104,10 @@ func FlushQueue() {
context := map[string]interface{}{eventbus.CtxPushMsg: eventbus.CtxPushMsgToStatusBar}
for _, op := range ops {
if util.IsExiting {
break
}
switch op.action {
case "upsert":
tree := op.upsertTree