mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
quckfix: send delay + delete log
This commit is contained in:
@@ -60,13 +60,8 @@ void SendSystem::sendFileBlock(QString path)
|
|||||||
|
|
||||||
|
|
||||||
stream << PacketType::TYPE_FILE; //Отправляем тип блока
|
stream << PacketType::TYPE_FILE; //Отправляем тип блока
|
||||||
|
|
||||||
stream << path << fileSize;
|
stream << path << fileSize;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//socket->waitForBytesWritten(10);
|
|
||||||
|
|
||||||
if(file.open(QFile::ReadOnly))
|
if(file.open(QFile::ReadOnly))
|
||||||
{
|
{
|
||||||
while(!file.atEnd())
|
while(!file.atEnd())
|
||||||
@@ -84,8 +79,6 @@ void SendSystem::sendFileBlock(QString path)
|
|||||||
|
|
||||||
file.close();
|
file.close();
|
||||||
countSend = 0;
|
countSend = 0;
|
||||||
// socket->waitForBytesWritten(10);
|
|
||||||
// socket->waitForReadyRead(20);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SendSystem::sendFileBlockByteArray(QByteArray array, PacketType packetType)
|
void SendSystem::sendFileBlockByteArray(QByteArray array, PacketType packetType)
|
||||||
@@ -194,7 +187,8 @@ void SendSystem::sendDeleteBlock(QString path)
|
|||||||
|
|
||||||
stream << PacketType::TYPE_DELETE;
|
stream << PacketType::TYPE_DELETE;
|
||||||
stream << path;
|
stream << path;
|
||||||
socket->waitForReadyRead(100);
|
qDebug() << "DELETE: " + path;
|
||||||
|
socket->waitForReadyRead(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SendSystem::sendPacketType(PacketType packetType)
|
void SendSystem::sendPacketType(PacketType packetType)
|
||||||
|
|||||||
Reference in New Issue
Block a user