From 49ef982552b9e06a098dec3c3f5e3cb2607e9ea1 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 24 Apr 2023 15:50:02 +0800 Subject: [PATCH] :art: Error notification pops up only once after auto sync fails https://github.com/siyuan-note/siyuan/issues/8096 --- kernel/model/sync.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/sync.go b/kernel/model/sync.go index bb460d823..97cb315cf 100644 --- a/kernel/model/sync.go +++ b/kernel/model/sync.go @@ -246,7 +246,7 @@ func checkSync(boot, exit, byHand bool) bool { if util.IsMutexLocked(&syncLock) { logging.LogWarnf("sync is in progress") - planSyncAfter(30 * time.Second) + planSyncAfter(fixSyncInterval) return false } @@ -582,7 +582,7 @@ func isProviderOnline(byHand bool) (ret bool) { util.PushErrMsg(Conf.Language(76)+" (Provider: "+conf.ProviderToStr(Conf.Sync.Provider)+")", 5000) } if !byHand { - planSyncAfter(30 * time.Second) + planSyncAfter(fixSyncInterval) autoSyncErrCount++ } }