🐛 云端同步在系统休眠后唤醒会重复执行 Fix https://github.com/siyuan-note/siyuan/issues/5784

This commit is contained in:
Liang Ding 2022-09-01 23:55:44 +08:00
parent 0d71a61ddb
commit 3ad5bb7607
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

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