Skip to content

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

:art: Avoid long wait when exiting while data repo purge is in progress https://github.com/siyuan-note/siyuan/issues/17711

Danielbdfa91e783fc
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index a34686607c..06d08cd2eb 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -764,10 +764,9 @@ func Close(force, setCurrentWorkspace bool, execInstallPkg int) (exitCode int) {
util.PushMsg(Conf.Language(95), 10000*60)
FlushTxQueue()
- if !force {
- cancelPurge()
+ cancelPurge()
- // Stop kernel plugins early in shutdown
+ if !force {
if OnKernelPluginsStop != nil {
OnKernelPluginsStop()
}