Some updates
This commit is contained in:
@@ -723,7 +723,7 @@ void SpeakingClient::processJoin() {
|
||||
if(!ref_server->assignDefaultChannel(this->ref(), false)) {
|
||||
auto result = command_result{error::vs_critical, "Could not assign default channel!"};
|
||||
this->notifyError(result);
|
||||
result.release_details();
|
||||
result.release_data();
|
||||
this->close_connection(system_clock::now() + seconds(1));
|
||||
return;
|
||||
}
|
||||
@@ -865,7 +865,7 @@ command_result SpeakingClient::handleCommand(Command &command) {
|
||||
else
|
||||
result = command_result{error::client_not_logged_in};
|
||||
|
||||
if(result.error_code())
|
||||
if(result.has_error())
|
||||
this->postCommandHandler.push_back([&]{
|
||||
this->close_connection(system_clock::now() + seconds(1));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user