some fixes for picloud, but still not working correctly
This commit is contained in:
@@ -181,7 +181,7 @@ void DispatcherServer::disconnectClient(DispatcherClient *client) {
|
||||
//piCoutObj << "INVALID client" << client;
|
||||
return;
|
||||
}
|
||||
piCoutObj << "remove" << client->clientId();
|
||||
piCoutObj << "remove ..." << client->clientId();
|
||||
map_mutex.lock();
|
||||
clients.removeAll(client);
|
||||
rm_clients.removeAll(client);
|
||||
@@ -206,9 +206,10 @@ void DispatcherServer::disconnectClient(DispatcherClient *client) {
|
||||
cc->removeClient(client);
|
||||
index_c_clients.remove(client);
|
||||
}
|
||||
client->close();
|
||||
//client->close();
|
||||
rmrf_clients << client;
|
||||
map_mutex.unlock();
|
||||
piCoutObj << "remove done" << client->clientId();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user