Selaa lähdekoodia

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

Vanessa 2 vuotta sitten
vanhempi
commit
02f7d02da5
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      kernel/model/sync.go

+ 3 - 0
kernel/model/sync.go

@@ -69,6 +69,9 @@ func SyncData(boot, exit, byHand bool) {
 		return
 		return
 	}
 	}
 
 
+	syncLock.Lock()
+	defer syncLock.Unlock()
+
 	if boot {
 	if boot {
 		util.IncBootProgress(3, "Syncing data from the cloud...")
 		util.IncBootProgress(3, "Syncing data from the cloud...")
 		BootSyncSucc = 0
 		BootSyncSucc = 0