mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
fix: fast connection
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user