From 98e7c29b379059540ac0076a731bc0a13a241809 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 24 Apr 2023 15:44:43 +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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/model/sync.go b/kernel/model/sync.go index d514acd5a..bb460d823 100644 --- a/kernel/model/sync.go +++ b/kernel/model/sync.go @@ -578,12 +578,13 @@ func isProviderOnline(byHand bool) (ret bool) { } if ret = util.IsOnline(checkURL, skipTlsVerify); !ret { - if !byHand { - autoSyncErrCount++ - } if 1 > autoSyncErrCount || byHand { util.PushErrMsg(Conf.Language(76)+" (Provider: "+conf.ProviderToStr(Conf.Sync.Provider)+")", 5000) } + if !byHand { + planSyncAfter(30 * time.Second) + autoSyncErrCount++ + } } return }