🐛 云端同步在系统休眠后唤醒会重复执行 Fix https://github.com/siyuan-note/siyuan/issues/5784
This commit is contained in:
parent
0d71a61ddb
commit
3ad5bb7607
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ func SyncData(boot, exit, byHand bool) {
|
|||
return
|
||||
}
|
||||
|
||||
syncLock.Lock()
|
||||
defer syncLock.Unlock()
|
||||
|
||||
if boot {
|
||||
util.IncBootProgress(3, "Syncing data from the cloud...")
|
||||
BootSyncSucc = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue