cloud fix ... ((

This commit is contained in:
2024-03-25 21:17:05 +03:00
parent 02a9bfb76f
commit 0d585cfebf
5 changed files with 24 additions and 11 deletions

View File

@@ -196,15 +196,13 @@ void DispatcherServer::disconnectClient(DispatcherClient * client) {
CloudServer * cs = index_c_servers.value(client, nullptr);
if (cs) {
piCoutObj << "remove Server" << client->clientId();
cs->stop();
PIVector<DispatcherClient *> cscv = cs->getClients();
for (auto csc: cscv) {
clients.removeAll(csc);
index_c_clients.remove(csc);
cs->removeClient(csc);
csc->close();
if (!rmrf_clients.contains(csc)) rmrf_clients << csc;
}
cs->close();
c_servers.remove(cs->serverUUID());
index_c_servers.remove(client);
delete cs;