hotfix: updateController

This commit is contained in:
semenov
2025-01-15 16:13:55 +03:00
parent c65e39ea1d
commit adbd8395ca
4 changed files with 109 additions and 58 deletions

View File

@@ -90,13 +90,23 @@ void RecognizeSystem::recognize()
if (command == commandUpdateFilesClient) //запускает процесс оновления
{
sendSystem->updateFiles(updateController->getFileSendList(),
updateController->getClientDataList());
updateController->getFileDeleteList());
qDebug()<< "Call update";
packetType = PacketType::TYPE_NONE;
command = "";
}
if(command == "check")
{
command = "";
QFile checkFile(clientHash);
checkFile.open(QIODevice::ReadOnly);
updateController->compareFiles(clientHandler,checkFile.readAll());
checkFile.close();
}
if (packetType == PacketType::TYPE_XMLANSWER)
{
@@ -280,14 +290,6 @@ void RecognizeSystem::recognize()
file.close();
if(command == "check")
{
QFile checkFile(filePath);
checkFile.open(QIODevice::ReadOnly);
updateController->compareFiles(clientHandler,checkFile.readAll());
checkFile.close();
}
filePath.clear();
fileSize = 0;
tmpBlock.clear();