Skip to content

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

:bug: 云端同步在系统休眠后唤醒会重复执行 Fix https://github.com/siyuan-note/siyuan/issues/5784

Liang Ding3ad5bb760798
diff --git a/kernel/model/sync.go b/kernel/model/sync.go
index 62f72699bd..1c122b6aaa 100644
--- a/kernel/model/sync.go
+++ b/kernel/model/sync.go
@@ -69,6 +69,9 @@ func SyncData(boot, exit, byHand bool) {
return
}
+ syncLock.Lock()
+ defer syncLock.Unlock()
+
if boot {
util.IncBootProgress(3, "Syncing data from the cloud...")
BootSyncSucc = 0