~singpolyma/biboumi

06271729e33300cebbd7222f50a2b38905e33cae — louiz’ 6 years ago 6e1af8b
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";