mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
BUSY и FREE проходят даже на незалогиненых
This commit is contained in:
@@ -52,8 +52,6 @@ InstructorsAndTraineesWidget::InstructorsAndTraineesWidget(QWidget *parent) :
|
|||||||
connect(connectorToServer, &ConnectorToServer::sigLoginResult, this, &InstructorsAndTraineesWidget::slot_checkLoginResult);
|
connect(connectorToServer, &ConnectorToServer::sigLoginResult, this, &InstructorsAndTraineesWidget::slot_checkLoginResult);
|
||||||
connect(connectorToServer, &ConnectorToServer::sigDeLoginResult, this, &InstructorsAndTraineesWidget::slot_checkDeLoginResult);
|
connect(connectorToServer, &ConnectorToServer::sigDeLoginResult, this, &InstructorsAndTraineesWidget::slot_checkDeLoginResult);
|
||||||
|
|
||||||
connect(connectorToServer, &ConnectorToServer::sigTryBlockResult, this, &InstructorsAndTraineesWidget::slot_checkTryBlockResult);
|
|
||||||
|
|
||||||
connect(connectorToServer, &ConnectorToServer::sigServerBlocked, this, &InstructorsAndTraineesWidget::slot_ServerBlocked);
|
connect(connectorToServer, &ConnectorToServer::sigServerBlocked, this, &InstructorsAndTraineesWidget::slot_ServerBlocked);
|
||||||
connect(connectorToServer, &ConnectorToServer::sigErrorAuth, this, &InstructorsAndTraineesWidget::slot_ErrorAuth);
|
connect(connectorToServer, &ConnectorToServer::sigErrorAuth, this, &InstructorsAndTraineesWidget::slot_ErrorAuth);
|
||||||
connect(connectorToServer, &ConnectorToServer::signal_SetVersion, this, &InstructorsAndTraineesWidget::slot_SetVersion);
|
connect(connectorToServer, &ConnectorToServer::signal_SetVersion, this, &InstructorsAndTraineesWidget::slot_SetVersion);
|
||||||
@@ -292,11 +290,6 @@ void InstructorsAndTraineesWidget::slot_checkDeLoginResult(ServerDeAuthorization
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void InstructorsAndTraineesWidget::slot_checkTryBlockResult(bool result, QString type)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void InstructorsAndTraineesWidget::slot_ServerBlocked()
|
void InstructorsAndTraineesWidget::slot_ServerBlocked()
|
||||||
{
|
{
|
||||||
if(flTryLogin)
|
if(flTryLogin)
|
||||||
|
|||||||
@@ -54,8 +54,6 @@ public Q_SLOTS:
|
|||||||
//Слот обработки результата деавторизации
|
//Слот обработки результата деавторизации
|
||||||
void slot_checkDeLoginResult(ServerDeAuthorization * serverDeAuth);
|
void slot_checkDeLoginResult(ServerDeAuthorization * serverDeAuth);
|
||||||
|
|
||||||
void slot_checkTryBlockResult(bool result, QString type);
|
|
||||||
|
|
||||||
void slot_ServerBlocked();
|
void slot_ServerBlocked();
|
||||||
void slot_ErrorAuth(QString error);
|
void slot_ErrorAuth(QString error);
|
||||||
void slot_SetVersion(StreamingVersionData* serverVersion);
|
void slot_SetVersion(StreamingVersionData* serverVersion);
|
||||||
|
|||||||
@@ -111,7 +111,8 @@ void CommonClientHandler::slot_sendPacketToAllClients(PacketType packetType)
|
|||||||
{
|
{
|
||||||
ClientHandler *handler = clientsMap->value(idSocket);
|
ClientHandler *handler = clientsMap->value(idSocket);
|
||||||
|
|
||||||
if (!handler->getClient()->getIsLoggedIn()) continue;
|
if(packetType != PacketType::BUSY && packetType != PacketType::FREE)
|
||||||
|
if (!handler->getClient()->getIsLoggedIn()) continue;
|
||||||
|
|
||||||
handler->sendPacketType(packetType);
|
handler->sendPacketType(packetType);
|
||||||
Logger::instance().log("AllSending " + handler->getClient()->getLogin() + " " + enumToString(packetType));
|
Logger::instance().log("AllSending " + handler->getClient()->getLogin() + " " + enumToString(packetType));
|
||||||
|
|||||||
Reference in New Issue
Block a user