mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: change version
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user