A lot of updates
This commit is contained in:
@@ -867,11 +867,11 @@ command_result SpeakingClient::handleCommand(Command &command) {
|
||||
if(this->handshake.state == HandshakeState::BEGIN || this->handshake.state == HandshakeState::IDENTITY_PROOF) {
|
||||
command_result result;
|
||||
if(command.command() == "handshakebegin")
|
||||
result = this->handleCommandHandshakeBegin(command);
|
||||
result.reset(this->handleCommandHandshakeBegin(command));
|
||||
else if(command.command() == "handshakeindentityproof")
|
||||
result = this->handleCommandHandshakeIdentityProof(command);
|
||||
result.reset(this->handleCommandHandshakeIdentityProof(command));
|
||||
else
|
||||
result = command_result{error::client_not_logged_in};
|
||||
result.reset(command_result{error::client_not_logged_in});
|
||||
|
||||
if(result.has_error())
|
||||
this->postCommandHandler.push_back([&]{
|
||||
|
||||
Reference in New Issue
Block a user