Make sure that SEND-LAST-VERSION is executed exactly once.
This commit is contained in:
parent
e8070a9e16
commit
3b2200c0bf
@ -462,6 +462,7 @@ private slots:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
PSAInstalled getPSAInstalled();
|
PSAInstalled getPSAInstalled();
|
||||||
|
static bool sendLastVersionOnce;
|
||||||
void privateUpdate();
|
void privateUpdate();
|
||||||
bool computeFilesToDownload();
|
bool computeFilesToDownload();
|
||||||
bool execOpkgCommands();
|
bool execOpkgCommands();
|
||||||
@ -1315,10 +1316,13 @@ private:
|
|||||||
ismasClient.setProgressInPercent(_SAVE_LOGS_FAILURE);
|
ismasClient.setProgressInPercent(_SAVE_LOGS_FAILURE);
|
||||||
break;
|
break;
|
||||||
case UPDATE_STEP::SEND_LAST_VERSION: {
|
case UPDATE_STEP::SEND_LAST_VERSION: {
|
||||||
ismasClient.setProgressInPercent(_SEND_LAST_VERSION + _SEND_LAST_VERSION_CORRECTION);
|
if (Worker::sendLastVersionOnce == false) {
|
||||||
ismasClient.sendRequestReceiveResponse(IsmasClient::APISM::DB_PORT,
|
ismasClient.setProgressInPercent(_SEND_LAST_VERSION + _SEND_LAST_VERSION_CORRECTION);
|
||||||
QString("#M=APISM#C=CMD_SENDVERSION#J=") +
|
ismasClient.sendRequestReceiveResponse(IsmasClient::APISM::DB_PORT,
|
||||||
ismasClient.updateOfPSASendVersion(instance->getPSAInstalled()));
|
QString("#M=APISM#C=CMD_SENDVERSION#J=") +
|
||||||
|
ismasClient.updateOfPSASendVersion(instance->getPSAInstalled()));
|
||||||
|
Worker::sendLastVersionOnce = true;
|
||||||
|
}
|
||||||
} break;
|
} break;
|
||||||
case UPDATE_STEP::UPDATE_SUCCEEDED: {
|
case UPDATE_STEP::UPDATE_SUCCEEDED: {
|
||||||
ismasClient.setProgressInPercent(_UPDATE_SUCCEEDED + _UPDATE_SUCCEEDED_CORRECTION);
|
ismasClient.setProgressInPercent(_UPDATE_SUCCEEDED + _UPDATE_SUCCEEDED_CORRECTION);
|
||||||
|
Loading…
Reference in New Issue
Block a user