From: Matthieu Gallien Date: Thu, 25 Nov 2021 15:45:19 +0000 (+0100) Subject: make sure we do not start a new batch when the previous one is not sent X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~18^2~83^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e14502606cb8cf84134f953f532c6eefb4d52973;p=nextcloud-desktop.git make sure we do not start a new batch when the previous one is not sent Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/bulkpropagatorjob.cpp b/src/libsync/bulkpropagatorjob.cpp index 7c74a3ce9..bd120d4fe 100644 --- a/src/libsync/bulkpropagatorjob.cpp +++ b/src/libsync/bulkpropagatorjob.cpp @@ -84,6 +84,9 @@ bool BulkPropagatorJob::scheduleSelfOrChild() if (_items.empty()) { return false; } + if (!_pendingChecksumFiles.empty()) { + return false; + } _state = Running; for(int i = 0; i < batchSize && !_items.empty(); ++i) {