Temporary stashing group changes
This commit is contained in:
@@ -122,7 +122,7 @@ command_result SpeakingClient::handleCommandClientInit(Command& cmd) {
|
||||
}
|
||||
|
||||
TIMING_STEP(timings, "db assign ");
|
||||
this->server->getGroupManager()->enableCache(this->getClientDatabaseId());
|
||||
this->server->group_manager()->enableCache(this->getClientDatabaseId());
|
||||
TIMING_STEP(timings, "gr cache ");
|
||||
|
||||
const static vector<string> available_parameters = {
|
||||
@@ -437,9 +437,9 @@ void SpeakingClient::processJoin() {
|
||||
}
|
||||
|
||||
TIMING_STEP(timings, "server reg ");
|
||||
ref_server->getGroupManager()->cleanupAssignments(this->getClientDatabaseId());
|
||||
ref_server->group_manager()->cleanupAssignments(this->getClientDatabaseId());
|
||||
TIMING_STEP(timings, "grp cleanup");
|
||||
ref_server->getGroupManager()->update_server_group_property(this->ref(), true, nullptr);
|
||||
ref_server->group_manager()->update_server_group_property(this->ref(), true, nullptr);
|
||||
TIMING_STEP(timings, "grp apply ");
|
||||
|
||||
this->properties()[property::CLIENT_COUNTRY] = config::geo::countryFlag;
|
||||
@@ -568,7 +568,7 @@ void SpeakingClient::processLeave() {
|
||||
unique_lock server_channel_lock(this->server->channel_tree_lock);
|
||||
server->unregisterClient(ownLock, "disconnected", server_channel_lock); /* already moves client to void if needed */
|
||||
}
|
||||
server->groups->disableCache(ownLock->getClientDatabaseId());
|
||||
server->group_manager()->disableCache(ownLock->getClientDatabaseId());
|
||||
server->music_manager_->cleanup_client_bots(this->getClientDatabaseId());
|
||||
//ref_server = nullptr; Removed caused nullptr exceptions
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user