mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
hotfix: multithread loading
This commit is contained in:
@@ -525,7 +525,7 @@ void ProcessingSystem::processingClientNotify(ClientHandler *client, ClientNotif
|
||||
else if(clientNotify.Code == commandStartTimerClient)
|
||||
{
|
||||
//Фиксируем время входа Юнити-клиента
|
||||
if (client->getClient()->GETTYPE() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
if (client->getClient()->getClientType() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
{
|
||||
processingEntryUnityClient(client);
|
||||
}
|
||||
@@ -535,7 +535,7 @@ void ProcessingSystem::processingClientNotify(ClientHandler *client, ClientNotif
|
||||
qDebug() << "processing thread: " << QThread::currentThreadId();
|
||||
|
||||
//Фиксируем время выхода Юнити-клиента
|
||||
if (client->getClient()->GETTYPE() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
if (client->getClient()->getClientType() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
{
|
||||
processingExitUnityClient(client);
|
||||
}
|
||||
@@ -667,7 +667,7 @@ void ProcessingSystem::sendTaskFIMToClient(ClientHandler *client, int id_trainee
|
||||
void ProcessingSystem::sendTaskListToUnity(ClientHandler *client)
|
||||
{
|
||||
//Отправка списков задач клиенту Юнити
|
||||
if(client->getClient()->GETTYPE() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
if(client->getClient()->getClientType() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
{
|
||||
QString login = client->getClient()->getLogin();
|
||||
int id_trainee = providerDBLMS->getIdTraineeByLogin(login);
|
||||
@@ -694,7 +694,7 @@ ClientHandler *ProcessingSystem::getUnityClientById(int id)
|
||||
ClientHandler *handler = server->getClientsMap()->value(idSocket);
|
||||
if(handler->getClient()->getLogin() == login)
|
||||
{
|
||||
if(handler->getClient()->GETTYPE() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
if(handler->getClient()->getClientType() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
{
|
||||
return handler;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user