feat: change version

This commit is contained in:
semenov
2025-01-20 09:08:46 +03:00
parent 7b8f920cdc
commit c0771c9d12
37 changed files with 251 additions and 7309 deletions

View File

@@ -71,7 +71,7 @@ void SendSystem::sendFileBlock(QString path)
while(!file.atEnd()){
QByteArray data = file.read(1025*250);
stream << data;
socket->waitForBytesWritten();
socket->waitForBytesWritten(20);
countSend++;
}
@@ -122,7 +122,7 @@ void SendSystem::sendFileBlockWithVersion(QString localPath,QString serverPath)
while(!file.atEnd()){
QByteArray data = file.read(1025*250);
stream << data;
socket->waitForBytesWritten();
socket->waitForBytesWritten(10);
countSend++;
}
@@ -217,16 +217,6 @@ void SendSystem::sendCheckHash()
socket->waitForReadyRead(2000);
stream << PacketType::TYPE_CHECK_VERSION;
//socket->waitForReadyRead(1000);
// else if(command == "update")
// {
// qDebug() << ("Update started");
// stream << PacketType::TYPE_COMMAND;
// stream << command;
// socket->waitForReadyRead(1000);
// }
}
SendSystem::~SendSystem()