summaryrefslogtreecommitdiff
path: root/src/xmpp/adhoc_commands_handler.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-06-11 00:28:26 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-06-11 00:49:39 +0200
commit3ea029dd98e41b32609571512359277259e81057 (patch)
tree28317dfafe81ba44f33ba8ce88873569f5144c0a /src/xmpp/adhoc_commands_handler.hpp
parent1604320a2398901aa7662ece857e9bd217e8b06a (diff)
downloadbiboumi-3ea029dd98e41b32609571512359277259e81057.tar.gz
biboumi-3ea029dd98e41b32609571512359277259e81057.tar.bz2
biboumi-3ea029dd98e41b32609571512359277259e81057.tar.xz
biboumi-3ea029dd98e41b32609571512359277259e81057.zip
Remove inactive ad-hoc sessions after a given time
ref #2521
Diffstat (limited to 'src/xmpp/adhoc_commands_handler.hpp')
-rw-r--r--src/xmpp/adhoc_commands_handler.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xmpp/adhoc_commands_handler.hpp b/src/xmpp/adhoc_commands_handler.hpp
index f443325..87d4d3d 100644
--- a/src/xmpp/adhoc_commands_handler.hpp
+++ b/src/xmpp/adhoc_commands_handler.hpp
@@ -37,6 +37,12 @@ public:
* it as our return value.
*/
XmlNode&& handle_request(const std::string& executor_jid, XmlNode command_node);
+ /**
+ * Remove the session from the list. This is done to avoid filling the
+ * memory with waiting session (for example due to a client that starts
+ * multi-steps command but never finishes them).
+ */
+ void remove_session(const std::string& session_id, const std::string& initiator_jid);
private:
/**
* A pointer to the XmppComponent, to access to basically anything in the