From 16f8f7d2c1d2e3acad64619b284afd8574accdba Mon Sep 17 00:00:00 2001 From: Camila Date: Mon, 11 Sep 2023 19:40:46 +0200 Subject: [PATCH] Cancel sync after try with smaller bulk upload batch size also throws error. Signed-off-by: Camila --- src/libsync/bulkpropagatorjob.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/libsync/bulkpropagatorjob.cpp b/src/libsync/bulkpropagatorjob.cpp index 7da0bd1572484..aabf72166b287 100644 --- a/src/libsync/bulkpropagatorjob.cpp +++ b/src/libsync/bulkpropagatorjob.cpp @@ -279,15 +279,16 @@ void BulkPropagatorJob::checkPropagationIsDone() // just wait for the other job to finish. return; } - - qCInfo(lcBulkPropagatorJob) << "final status" << _finalStatus; - emit finished(_finalStatus); - propagator()->scheduleNextJob(); } else { if (handleBatchSize()) { scheduleSelfOrChild(); + return; } } + + qCInfo(lcBulkPropagatorJob) << "final status" << _finalStatus; + emit finished(_finalStatus); + propagator()->scheduleNextJob(); } void BulkPropagatorJob::slotComputeTransmissionChecksum(SyncFileItemPtr item,