Try to find out existing adhoc session only when session id is set in IQ
This commit is contained in:
parent
5f607b5622
commit
00475b428a
1 changed files with 1 additions and 1 deletions
|
@ -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()];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue