убрал мусор

This commit is contained in:
2026-02-27 10:52:13 +03:00
parent 6bde215bbe
commit 715d29a1ec

View File

@@ -34,29 +34,12 @@ void RecognizeSystem::recognize(QTcpSocket *socket)
int cntBytesAvl = 0;
while((cntBytesAvl = socket->bytesAvailable()) > 0)
{
/*
if(cntBytesAvl < 4)
{
//if(!socket->waitForReadyRead(TCP_READ_TIMEOUT))
//return;
socket->waitForReadyRead(TCP_READ_TIMEOUT);
continue;
}
*/
if (socket->state() != QTcpSocket::ConnectedState)
{
qDebug() << "RecognizeSystem::recognize socket->state() != QTcpSocket::ConnectedState";
return;
}
/*
if(!socket->waitForReadyRead(TCP_READ_TIMEOUT))
{
continue;
}
*/
if(packetType == PacketType::TYPE_NONE) //определение первичного пакета
{
stream.startTransaction();
@@ -73,7 +56,7 @@ void RecognizeSystem::recognize(QTcpSocket *socket)
else
socket->waitForReadyRead(100);
}
//continue;
switch ((int)packetType)
{
@@ -164,9 +147,6 @@ void RecognizeSystem::recognize(QTcpSocket *socket)
continue;
}
//if(!socket->waitForReadyRead(TCP_READ_TIMEOUT))
//continue;
if(fileSize - sizeReceiveData >= BLOCK_SIZE)
tmpBlock = socket->read(BLOCK_SIZE);
else