Commit 06271729 authored by louiz’'s avatar louiz’
Browse files

Fix a crash happening when a user cancels a non-existing ad-hoc session

parent 6e1af8b0
......@@ -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")
command_node["status"] = "canceled";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment