mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 细化云端同步锁提升稳定性 https://github.com/siyuan-note/siyuan/issues/5887
This commit is contained in:
parent
3468fb0976
commit
9ab7030a81
10 changed files with 50 additions and 41 deletions
|
|
@ -63,8 +63,8 @@ func SyncData(boot, exit, byHand bool) {
|
|||
return
|
||||
}
|
||||
|
||||
util.WritingFileLock.Lock()
|
||||
defer util.WritingFileLock.Unlock()
|
||||
util.LockWriteFile()
|
||||
defer util.UnlockWriteFile()
|
||||
|
||||
if util.IsMutexLocked(&syncLock) {
|
||||
logging.LogWarnf("sync is in progress")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue