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

This commit is contained in:
Liang Ding 2023-01-25 20:42:05 +08:00
parent 07ad00ec95
commit a4d779258c
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 24 additions and 7 deletions

View file

@ -393,11 +393,10 @@ func getBlock(id string) (ret *Block, err error) {
tree, err := loadTreeByBlockID(id)
if nil != err {
waitForIndexing()
tree, err = loadTreeByBlockID(id)
if nil != err {
return
if indexing {
err = ErrIndexing
}
return
}
node := treenode.GetNodeInTree(tree, id)