mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
ref: delete duplicate meth
This commit is contained in:
@@ -24,10 +24,11 @@ void SendSystem::setClient(Client *client,QTcpSocket *socket)
|
||||
isSendStopped = false;
|
||||
}
|
||||
|
||||
void SendSystem::sendMessageBlock(QString message)
|
||||
void SendSystem::sendNotify(QString notify)
|
||||
{
|
||||
auto messageBlock = emit sigSendNotify(message);
|
||||
sendXmlAnswer(messageBlock);
|
||||
qDebug() << "SendNotify thread: " << QThread::currentThreadId();
|
||||
auto answer = emit sigSendNotify(notify);
|
||||
sendXmlAnswer(answer);
|
||||
}
|
||||
|
||||
void SendSystem::sendFileBlock(QString path)
|
||||
@@ -234,13 +235,6 @@ void SendSystem::sendHello()
|
||||
socket->write(SERVER_HELLO);
|
||||
}
|
||||
|
||||
void SendSystem::sendNotify(QString notify)
|
||||
{
|
||||
qDebug() << "SendNotify thread: " << QThread::currentThreadId();
|
||||
auto answer = emit sigSendNotify(notify);//"END");
|
||||
sendXmlAnswer(answer);
|
||||
}
|
||||
|
||||
void SendSystem::sendXmlAnswer(QByteArray array, PacketType packetType)
|
||||
{
|
||||
qDebug() << "SendSystemThread: " << QThread::currentThreadId();
|
||||
|
||||
@@ -360,7 +360,7 @@ QList<FileData>* UpdateController::calculateHash(QString path)
|
||||
QFile file(fileInfo.absoluteFilePath());
|
||||
|
||||
quint64 fileSize = file.size(); //буффер для хэширования крупных файлов
|
||||
const quint64 bufferSize = 10240;
|
||||
const quint64 bufferSize = 1024;
|
||||
|
||||
if(fileInfo.isHidden()) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user