From: Matthieu Gallien Date: Tue, 14 Dec 2021 11:37:25 +0000 (+0100) Subject: fix review comment X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~17^2~242^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=24f1d2ce89586fb263bb646a1f5406b9a9e9094a;p=nextcloud-desktop.git fix review comment Signed-off-by: Matthieu Gallien --- 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; }