Fix a crash happening when a user cancels a non-existing ad-hoc session
1 files changed, 1 insertions(+), 1 deletions(-) M src/xmpp/adhoc_commands_handler.cpp
M src/xmpp/adhoc_commands_handler.cpp => src/xmpp/adhoc_commands_handler.cpp +1 -1
@@ 83,7 83,7 @@ XmlNode AdhocCommandsHandler::handle_request(const std::string& executor_jid, co XmlSubNode next(actions, "next"); } } else if (action == "cancel") else if (session_it != this->sessions.end() && action == "cancel") { this->sessions.erase(session_it); command_node["status"] = "canceled";