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 Ding251e3137c183
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index 8c145ca779..72f69d9840 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -367,6 +367,7 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
wg := sync.WaitGroup{}
go func() {
wg.Add(1)
+ time.Sleep(util.FrontendQueueInterval + 50*time.Millisecond)
WaitForWritingFiles()
time.Sleep(50 * time.Millisecond)
sql.WaitForWritingDatabase()