forked from qt-creator/qt-creator
zeroconf: avoid double triggering of hadFailure
Change-Id: Ia4e2da06714b06fc7a98a0acb6d3868fc4bafca9 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
This commit is contained in:
@@ -1852,8 +1852,9 @@ void MainConnection::handleEvents()
|
|||||||
if (m_nErrs > 0){
|
if (m_nErrs > 0){
|
||||||
QString browsersNames = (m_browsers.isEmpty() ? QString() : m_browsers.at(0)->serviceType)
|
QString browsersNames = (m_browsers.isEmpty() ? QString() : m_browsers.at(0)->serviceType)
|
||||||
+ ((m_browsers.count() > 1) ? QString::fromLatin1(",...") : QString());
|
+ ((m_browsers.count() > 1) ? QString::fromLatin1(",...") : QString());
|
||||||
appendError(ErrorMessage::FailureLevel, tr("MainConnection for [%1] accumulated %2 consecutive errors, aborting")
|
if (isOk())
|
||||||
.arg(browsersNames).arg(m_nErrs));
|
appendError(ErrorMessage::FailureLevel, tr("MainConnection for [%1] accumulated %2 consecutive errors, aborting")
|
||||||
|
.arg(browsersNames).arg(m_nErrs));
|
||||||
}
|
}
|
||||||
increaseStatusTo(Stopped);
|
increaseStatusTo(Stopped);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user