Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Liang Dingd092b9c9d85a
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index ddf7dd4630..8c145ca779 100644
--- a/kernel/model/conf.go
+++ b/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()