Changeset - 00475b428add
[Not reviewed]
0 1 0
Jan Kaluza - 13 years ago 2012-12-11 11:42:31
hanzz.k@gmail.com
Try to find out existing adhoc session only when session id is set in IQ
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/adhocmanager.cpp
Show inline comments
 
@@ -116,7 +116,7 @@ bool AdHocManager::handleGetRequest(const Swift::JID& from, const Swift::JID& to
 
bool AdHocManager::handleSetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, boost::shared_ptr<Swift::Command> payload) {
 
	AdHocCommand *command = NULL;
 
	// Try to find AdHocCommand according to 'from' and session_id
 
	if (m_sessions.find(from) != m_sessions.end()) {
 
	if (!payload->getSessionID().empty() && m_sessions.find(from) != m_sessions.end()) {
 
		if (m_sessions[from].find(payload->getSessionID()) != m_sessions[from].end()) {
 
			command = m_sessions[from][payload->getSessionID()];
 
		}
0 comments (0 inline, 0 general)