Updated beta1
This commit is contained in:
@@ -262,13 +262,12 @@ command_result ConnectedClient::handleCommandGetConnectionInfo(Command &cmd) {
|
||||
ConnectedLockedClient client{this->server->find_client_by_id(cmd["clid"].as<ClientId>())};
|
||||
if (!client) return command_result{error::client_invalid_id};
|
||||
|
||||
bool send_temp;
|
||||
bool send_temp{false};
|
||||
auto info = client->request_connection_info(_this.lock(), send_temp);
|
||||
if (info) {
|
||||
if (info || send_temp) {
|
||||
this->notifyConnectionInfo(client.client, info);
|
||||
} else if(send_temp) {
|
||||
} else
|
||||
return command_result{error::no_cached_connection_info};
|
||||
}
|
||||
|
||||
return command_result{error::ok};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user