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:
|
||||
PSAInstalled getPSAInstalled();
|
||||
static bool sendLastVersionOnce;
|
||||
void privateUpdate();
|
||||
bool computeFilesToDownload();
|
||||
bool execOpkgCommands();
|
||||
@ -1315,10 +1316,13 @@ private:
|
||||
ismasClient.setProgressInPercent(_SAVE_LOGS_FAILURE);
|
||||
break;
|
||||
case UPDATE_STEP::SEND_LAST_VERSION: {
|
||||
ismasClient.setProgressInPercent(_SEND_LAST_VERSION + _SEND_LAST_VERSION_CORRECTION);
|
||||
ismasClient.sendRequestReceiveResponse(IsmasClient::APISM::DB_PORT,
|
||||
QString("#M=APISM#C=CMD_SENDVERSION#J=") +
|
||||
ismasClient.updateOfPSASendVersion(instance->getPSAInstalled()));
|
||||
if (Worker::sendLastVersionOnce == false) {
|
||||
ismasClient.setProgressInPercent(_SEND_LAST_VERSION + _SEND_LAST_VERSION_CORRECTION);
|
||||
ismasClient.sendRequestReceiveResponse(IsmasClient::APISM::DB_PORT,
|
||||
QString("#M=APISM#C=CMD_SENDVERSION#J=") +
|
||||
ismasClient.updateOfPSASendVersion(instance->getPSAInstalled()));
|
||||
Worker::sendLastVersionOnce = true;
|
||||
}
|
||||
} break;
|
||||
case UPDATE_STEP::UPDATE_SUCCEEDED: {
|
||||
ismasClient.setProgressInPercent(_UPDATE_SUCCEEDED + _UPDATE_SUCCEEDED_CORRECTION);
|
||||
|
Loading…
Reference in New Issue
Block a user