mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
добавил очищение списка клиентов в сервере при Стопе
This commit is contained in:
@@ -142,7 +142,8 @@ bool ServerLMSWidget::stopServer()
|
||||
autorizationHandler(clientsMap[idSocket]->getClient()->getLogin());
|
||||
|
||||
clientsMap[idSocket]->sigSocketClose();
|
||||
clientsMap.remove(idSocket);
|
||||
//clientsMap.remove(idSocket);
|
||||
removeClient(idSocket);
|
||||
}
|
||||
|
||||
//Закрываем сервер
|
||||
@@ -198,6 +199,7 @@ void ServerLMSWidget::slotAddToMessanger(QString login, QString text)
|
||||
void ServerLMSWidget::removeClient(int idSocket)
|
||||
{
|
||||
clientsMap.remove(idSocket);
|
||||
slotUpdateListClients();
|
||||
}
|
||||
|
||||
void ServerLMSWidget::addClient(qintptr descriptor, ClientHandler *client)
|
||||
|
||||
Reference in New Issue
Block a user