mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🎨 Update wait for syncing storage
This commit is contained in:
parent
abfc19f199
commit
4867ef2bde
1 changed files with 1 additions and 4 deletions
|
|
@ -831,10 +831,7 @@ var syncingFiles = sync.Map{}
|
|||
var syncingStorages = false
|
||||
|
||||
func waitForSyncingStorages() {
|
||||
for i := 0; i < 60; i++ {
|
||||
if syncingStorages {
|
||||
return
|
||||
}
|
||||
for syncingStorages {
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue