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

This commit is contained in:
Liang Ding 2022-10-23 12:03:32 +08:00
parent 4ae5698ea6
commit db04bfa572
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 27 additions and 12 deletions

View file

@ -45,7 +45,7 @@ type EmbedBlock struct {
}
func SearchEmbedBlock(embedBlockID, stmt string, excludeIDs []string, headingMode int, breadcrumb bool) (ret []*EmbedBlock) {
time.Sleep(512 * time.Millisecond /* 前端队列轮询间隔 */)
time.Sleep(util.FrontendQueueInterval)
WaitForWritingFiles()
return searchEmbedBlock(embedBlockID, stmt, excludeIDs, headingMode, breadcrumb)
}