Do not send an update packet until we have actually begun processing sub-jobs

This commit is contained in:
Erik Duisters 2019-01-27 16:44:05 +01:00
parent 975dd6e907
commit 805795af07

View file

@ -206,8 +206,8 @@ bool CompositeUploadJob::addSubjob(KJob* job)
}
emitDescription(filename);
if (m_running && !m_updatePacketPending) {
if (m_running && m_currentJob && !m_updatePacketPending) {
m_updatePacketPending = true;
QMetaObject::invokeMethod(this, "sendUpdatePacket", Qt::QueuedConnection);
}