fix review comment
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 14 Dec 2021 11:37:25 +0000 (12:37 +0100)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Tue, 14 Dec 2021 15:28:42 +0000 (15:28 +0000)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/bulkpropagatorjob.cpp

index f63006148503db7bd258a05c708c706dc64ac2fc..269a0e6c3eea79dcd2a3b03837b872b805fec49d 100644 (file)
@@ -234,11 +234,7 @@ void BulkPropagatorJob::triggerUpload()
 void BulkPropagatorJob::checkPropagationIsDone()
 {
     if (_items.empty()) {
-        if (!_jobs.empty()) {
-            // just wait for the other job to finish.
-            return;
-        }
-        if (!_pendingChecksumFiles.empty()) {
+        if (!_jobs.empty() || !_pendingChecksumFiles.empty()) {
             // just wait for the other job to finish.
             return;
         }