Fix critical bug in syncing folder
This commit is contained in:
parent
0002ce2520
commit
af45eacd1f
|
@ -279,10 +279,14 @@ class RemoteSyncService {
|
|||
localIDsToSync.removeAll(alreadyClaimedLocalIDs);
|
||||
}
|
||||
|
||||
if (localIDsToSync.isEmpty || deviceCollection.collectionID == -1) {
|
||||
if (localIDsToSync.isEmpty) {
|
||||
continue;
|
||||
}
|
||||
await _createCollectionForDevicePath(deviceCollection);
|
||||
if (deviceCollection.collectionID == -1) {
|
||||
_logger.finest('DeviceCollection should not be -1 here');
|
||||
continue;
|
||||
}
|
||||
|
||||
moreFilesMarkedForBackup = true;
|
||||
await _db.setCollectionIDForUnMappedLocalFiles(
|
||||
|
|
Loading…
Reference in a new issue