mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 06:18:49 +01:00
🎨 Add retry to improve network check
This commit is contained in:
parent
a969141f2b
commit
f87f27b352
2 changed files with 11 additions and 18 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue