🎨 Error notification pops up only once after auto sync fails https://github.com/siyuan-note/siyuan/issues/8096

This commit is contained in:
Liang Ding 2023-04-24 15:50:02 +08:00
parent 98e7c29b37
commit 49ef982552
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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++
}
}