connect(_rootJob.data(), &PropagatorJob::finished, this, &OwncloudPropagator::emitFinished);
+ _jobScheduled = false;
scheduleNextJob();
}
void OwncloudPropagator::scheduleNextJob()
{
+ if (_jobScheduled) return; // don't schedule more than 1
+ _jobScheduled = true;
QTimer::singleShot(0, this, &OwncloudPropagator::scheduleNextJobImpl);
}
// Down-scaling on slow networks? https://github.com/owncloud/client/issues/3382
// Making sure we do up/down at same time? https://github.com/owncloud/client/issues/1633
+ _jobScheduled = false;
+
if (_activeJobList.count() < maximumActiveTransferJob()) {
if (_rootJob->scheduleSelfOrChild()) {
scheduleNextJob();