浏览代码

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 2 年之前
父节点
当前提交
4fd89b759f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      kernel/model/box.go

+ 2 - 1
kernel/model/box.go

@@ -500,7 +500,7 @@ func FullReindex() {
 }
 }
 
 
 func fullReindex() {
 func fullReindex() {
-	util.PushMsg(Conf.Language(35), 7*1000)
+	msgId := util.PushMsg(Conf.Language(35), 7*1000)
 	WaitForWritingFiles()
 	WaitForWritingFiles()
 
 
 	if err := sql.InitDatabase(true); nil != err {
 	if err := sql.InitDatabase(true); nil != err {
@@ -520,6 +520,7 @@ func fullReindex() {
 	runtime.GC()
 	runtime.GC()
 	go func() {
 	go func() {
 		time.Sleep(3 * time.Second)
 		time.Sleep(3 * time.Second)
+		util.PushClearMsg(msgId)
 		util.PushStatusBar(Conf.Language(108))
 		util.PushStatusBar(Conf.Language(108))
 	}()
 	}()
 }
 }