From 24f1d2ce89586fb263bb646a1f5406b9a9e9094a Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 14 Dec 2021 12:37:25 +0100 Subject: [PATCH] fix review comment Signed-off-by: Matthieu Gallien --- src/libsync/bulkpropagatorjob.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/libsync/bulkpropagatorjob.cpp b/src/libsync/bulkpropagatorjob.cpp index f63006148..269a0e6c3 100644 --- a/src/libsync/bulkpropagatorjob.cpp +++ b/src/libsync/bulkpropagatorjob.cpp @@ -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; } -- 2.30.2