fix: fast connection

This commit is contained in:
semenov
2025-09-19 11:39:54 +03:00
parent f2c6280bf3
commit b00c5b8264
2 changed files with 10 additions and 8 deletions

View File

@@ -519,6 +519,8 @@ void ProcessingSystem::processingSendMessage(ClientMessage clientMessage)
void ProcessingSystem::processingClientNotify(ClientHandler *client, ClientNotify clientNotify)
{
Client *clientData = client->getClient();
if(clientNotify.Code == commandReadyClient)
{//Клиент готов принять задания
client->setReady(true);
@@ -528,7 +530,7 @@ void ProcessingSystem::processingClientNotify(ClientHandler *client, ClientNotif
else if(clientNotify.Code == commandStartTimerClient)
{
//Фиксируем время входа Юнити-клиента
if (client->getClient()->getClientType() == TypeClientAutorization::TYPE_UNITY_CLIENT)
if (clientData->getClientType() == TypeClientAutorization::TYPE_UNITY_CLIENT)
{
processingEntryUnityClient(client);
}
@@ -538,7 +540,7 @@ void ProcessingSystem::processingClientNotify(ClientHandler *client, ClientNotif
qDebug() << "processing thread: " << QThread::currentThreadId();
//Фиксируем время выхода Юнити-клиента
if (client->getClient()->getClientType() == TypeClientAutorization::TYPE_UNITY_CLIENT)
if (clientData->getClientType() == TypeClientAutorization::TYPE_UNITY_CLIENT)
{
processingExitUnityClient(client);
}
@@ -570,10 +572,10 @@ void ProcessingSystem::processingClientNotify(ClientHandler *client, ClientNotif
}
else if (clientNotify.Code == commandeGetOfflineMessages)
{
chatSystem->sendOldMessages(client->getClient()->getId());
chatSystem->sendOldMessages(clientData->getId());
}
Logger::instance().log(client->getClient()->getLogin() + " notifyCode " + clientNotify.Code,LogLevel::DEBUG);
Logger::instance().log(clientData->getLogin() + " notifyCode " + clientNotify.Code,LogLevel::DEBUG);
}
void ProcessingSystem::setCurrentDataInfo(DataInfo *dataInfo)