Sfoglia il codice sorgente

:bug: 重建索引可能会导致内核崩溃 https://github.com/siyuan-note/siyuan/issues/7238

Liang Ding 2 anni fa
parent
commit
ea95093bab
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      kernel/model/box.go

+ 4 - 1
kernel/model/box.go

@@ -518,7 +518,10 @@ func fullReindex() {
 	treenode.SaveBlockTree(true)
 	treenode.SaveBlockTree(true)
 	LoadFlashcards()
 	LoadFlashcards()
 	runtime.GC()
 	runtime.GC()
-	util.PushStatusBar(Conf.Language(108))
+	go func() {
+		time.Sleep(3 * time.Second)
+		util.PushStatusBar(Conf.Language(108))
+	}()
 }
 }
 
 
 func ChangeBoxSort(boxIDs []string) {
 func ChangeBoxSort(boxIDs []string) {