Browse Source

:bug: 退出应用时数据库未完全写入 https://github.com/siyuan-note/siyuan/issues/6318

Liang Ding 2 years ago
parent
commit
d092b9c9d8
1 changed files with 0 additions and 1 deletions
  1. 0 1
      kernel/model/conf.go

+ 0 - 1
kernel/model/conf.go

@@ -367,7 +367,6 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
 	wg := sync.WaitGroup{}
 	go func() {
 		wg.Add(1)
-		time.Sleep(util.FrontendQueueInterval * 2)
 		WaitForWritingFiles()
 		time.Sleep(50 * time.Millisecond)
 		sql.WaitForWritingDatabase()