Browse Source

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

Vanessa 2 years ago
parent
commit
02f7d02da5
1 changed files with 3 additions and 0 deletions
  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