Fixed some crashes
This commit is contained in:
@@ -15,7 +15,9 @@ void LicenceRequest::handlePacketDisconnect(const std::string& message) {
|
||||
* Test if we have a result. If so and the license is invalid then we could use that result
|
||||
*/
|
||||
if(this->response && !this->response->license_valid) {
|
||||
this->currentFuture->executionSucceed(this->response);
|
||||
try {
|
||||
this->currentFuture->executionSucceed(this->response);
|
||||
} catch(threads::InvalidFutureException& ex) {}
|
||||
} else {
|
||||
LICENSE_FERR(this, UnexcpectedDisconnectException, "Remote side closed the connection unexpectedly (" + message + ")");
|
||||
}
|
||||
@@ -119,7 +121,9 @@ void LicenceRequest::handlePacketInfoAdjustment(const std::string& message) {
|
||||
this->callback_update_certificate(cert);
|
||||
}
|
||||
|
||||
this->currentFuture->executionSucceed(this->response);
|
||||
try {
|
||||
this->currentFuture->executionSucceed(this->response);
|
||||
} catch(threads::InvalidFutureException& ex) {}
|
||||
this->response = nullptr;
|
||||
|
||||
this->disconnect("query succeeded!");
|
||||
|
||||
@@ -2503,7 +2503,7 @@ command_result ConnectedClient::handleCommandConversationMessageDelete(ts::Comma
|
||||
if (!permission::v2::permission_granted(1, this->calculate_permission(permission::b_channel_conversation_message_delete, 1, channel->channelId())))
|
||||
return command_result{permission::b_channel_conversation_message_delete};
|
||||
|
||||
if(auto error_perm = this->calculate_and_get_join_state(channel); error_perm && error_perm != permission::b_client_is_sticky)
|
||||
if(auto error_perm = this->calculate_and_get_join_state(channel); error_perm != permission::ok && error_perm != permission::b_client_is_sticky)
|
||||
return command_result{error_perm};
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
Submodule shared updated: e500f8c0aa...72661d17bc
Reference in New Issue
Block a user