浏览代码

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 2 年之前
父节点
当前提交
02f7d02da5
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      kernel/model/sync.go

+ 3 - 0
kernel/model/sync.go

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