From 705424727b0fd7573123383f8bf7f8917028ad0c Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 28 Sep 2023 11:53:59 +0200 Subject: [PATCH] Removed call to final-result: ISMAS will not show U0002 twice. --- worker.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/worker.cpp b/worker.cpp index e6438ff..98ffd78 100644 --- a/worker.cpp +++ b/worker.cpp @@ -326,13 +326,14 @@ void Worker::privateUpdate() { stopProgressLoop(); emit appendText(QString("UPDATE "), UPDATE_STEP_FAIL); - m_updateStatus = UpdateStatus(UPDATE_STATUS::UPDATE_PROCESS_FAILURE, - QString("Update process failed")); - if (std::optional s = m_ismasClient.finalResult(IsmasClient::RESULT_CODE::INSTALL_ERROR, - m_updateStatus.m_statusDescription)) { - IsmasClient::sendRequestReceiveResponse(IsmasClient::APISM::DB_PORT, - QString("#M=APISM#C=CMD_EVENT#J=") + s.value()); - } + // m_updateStatus = UpdateStatus(UPDATE_STATUS::UPDATE_PROCESS_FAILURE, + // QString("Update process failed")); + // if (std::optional s = m_ismasClient.finalResult(IsmasClient::RESULT_CODE::INSTALL_ERROR, + // m_updateStatus.m_statusDescription)) { + // IsmasClient::sendRequestReceiveResponse(IsmasClient::APISM::DB_PORT, + // QString("#M=APISM#C=CMD_EVENT#J=") + s.value()); + // } + } else { emit appendText(QString("UPDATE "), UPDATE_STEP_SUCCESS);