mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
fix: GUI double send getOfflineMessage
This commit is contained in:
@@ -78,34 +78,6 @@ void SendSystem::sendFileBlock(QString path)
|
||||
|
||||
void SendSystem::sendFileBlockByteArray(QByteArray array, PacketType packetType)
|
||||
{
|
||||
// qDebug() << "sendFileBlockByteArray thread: " << QThread::currentThreadId();
|
||||
// if(client->getClientType() == TypeClientAutorization::TYPE_QT_CLIENT ||
|
||||
// client->getClientType() == TypeClientAutorization::TYPE_GUI)
|
||||
// {
|
||||
// QDataStream stream(socket);
|
||||
// stream.setVersion(QDataStream::Qt_DefaultCompiledVersion);
|
||||
|
||||
// fileSize = array.size();
|
||||
|
||||
// if(fileSize == 0){
|
||||
// Logger::instance().log(" WARNING! Zero size ",LogLevel::ERROR);
|
||||
// return;
|
||||
// }
|
||||
|
||||
// stream << packetType; //Отправляем тип блока
|
||||
// stream << fileSize;
|
||||
// stream << array;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// sendPacketType(packetType);
|
||||
// QByteArray message;
|
||||
// int size = array.length();
|
||||
// message.append(reinterpret_cast<char*>(&size), sizeof(int));
|
||||
// socket->write(message);
|
||||
// socket->write(array);
|
||||
// }
|
||||
|
||||
if(client->getClientType() == TypeClientAutorization::TYPE_QT_CLIENT ||
|
||||
client->getClientType() == TypeClientAutorization::TYPE_GUI)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user