Skip to content

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

:art: Improve data sync when exiting https://github.com/siyuan-note/siyuan/issues/11847

Daniel0859df6ca0de
diff --git a/kernel/model/sync.go b/kernel/model/sync.go
index cc39027879..8449bdffb7 100644
--- a/kernel/model/sync.go
+++ b/kernel/model/sync.go
@@ -259,12 +259,6 @@ func checkSync(boot, exit, byHand bool) bool {
}
}
- if isSyncing.Load() {
- logging.LogWarnf("sync is in progress")
- planSyncAfter(fixSyncInterval)
- return false
- }
-
if 7 < autoSyncErrCount && !byHand {
logging.LogErrorf("failed to auto-sync too many times, delay auto-sync 64 minutes")
util.PushErrMsg(Conf.Language(125), 1000*60*60)