add a break to prevent possible endless loop

This commit is contained in:
Gerhard Hoffmann 2023-12-19 14:25:59 +01:00
parent 7bfbdc0f07
commit 6ddfbbfd9e

View File

@ -123,6 +123,7 @@ Update::Update(Worker *worker,
// must deliver 'true', only then are all data from hwapi valid // must deliver 'true', only then are all data from hwapi valid
if (--tries < 0) { if (--tries < 0) {
qCritical() << "ERROR!!! DC DATA NOT VALID -> CA-MASTER-PLUGIN NOT CONNECTED"; qCritical() << "ERROR!!! DC DATA NOT VALID -> CA-MASTER-PLUGIN NOT CONNECTED";
break;
} }
m_hw->dc_autoRequest(true); m_hw->dc_autoRequest(true);
QThread::msleep(500); QThread::msleep(500);