🎨 Add retry to improve network check

This commit is contained in:
Liang Ding 2023-04-04 10:21:34 +08:00
parent a969141f2b
commit f87f27b352
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 11 additions and 18 deletions

View file

@ -576,7 +576,7 @@ func isProviderOnline() (ret bool) {
checkURL = Conf.Sync.WebDAV.Endpoint
default:
logging.LogWarnf("unknown provider: %d", Conf.Sync.Provider)
util.IsOnline("")
return false
}
if ret = util.IsOnline(checkURL); !ret {