summaryrefslogtreecommitdiff
path: root/src/xmpp/adhoc_commands_handler.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-01-22 21:06:43 +0100
committerlouiz’ <louiz@louiz.org>2018-01-22 21:06:43 +0100
commitde73a728f28df7db3fddd431b07ef5bf6742fb1a (patch)
tree06537615172ded994021f620a155bc4cc7e55109 /src/xmpp/adhoc_commands_handler.cpp
parent24b4a09d47829994157305cd5ef68a44ac7af27d (diff)
parent23e51e814f330ee06dc4dac29d1b2f328e8238b8 (diff)
downloadbiboumi-de73a728f28df7db3fddd431b07ef5bf6742fb1a.tar.gz
biboumi-de73a728f28df7db3fddd431b07ef5bf6742fb1a.tar.bz2
biboumi-de73a728f28df7db3fddd431b07ef5bf6742fb1a.tar.xz
biboumi-de73a728f28df7db3fddd431b07ef5bf6742fb1a.zip
Merge tag '7.1'
Diffstat (limited to 'src/xmpp/adhoc_commands_handler.cpp')
-rw-r--r--src/xmpp/adhoc_commands_handler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/adhoc_commands_handler.cpp b/src/xmpp/adhoc_commands_handler.cpp
index e4dcd5c..bb48781 100644
--- a/src/xmpp/adhoc_commands_handler.cpp
+++ b/src/xmpp/adhoc_commands_handler.cpp
@@ -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";