bugfix: diff update

This commit is contained in:
semenov
2025-01-17 11:10:34 +03:00
parent c339ec9580
commit 4b9ee1738a
5 changed files with 24 additions and 8 deletions

View File

@@ -87,24 +87,22 @@ void RecognizeSystem::recognize()
if (!stream.commitTransaction()) continue;
}
if (command == commandUpdateFilesClient) //запускает процесс оновления
if (packetType == PacketType::TYPE_UPDATE)
{
sendSystem->updateFiles(updateController->getFileSendList(),
updateController->getFileDeleteList());
qDebug()<< "Call update";
packetType = PacketType::TYPE_NONE;
command = "";
}
if(command == "check")
if(packetType == PacketType::TYPE_CHECK_VERSION)
{
command = "";
QFile checkFile(clientHash);
checkFile.open(QIODevice::ReadOnly);
updateController->compareFiles(clientHandler,checkFile.readAll());
checkFile.close();
}
if (packetType == PacketType::TYPE_XMLANSWER)