summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xprotocols/JabberG/src/jabber_strm_mgmt.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_strm_mgmt.cpp b/protocols/JabberG/src/jabber_strm_mgmt.cpp
index 070e747913..6fa7afcf84 100755
--- a/protocols/JabberG/src/jabber_strm_mgmt.cpp
+++ b/protocols/JabberG/src/jabber_strm_mgmt.cpp
@@ -148,7 +148,12 @@ void strm_mgmt::OnProcessFailed(HXML node, ThreadData * /*info*/) //used failed
{
if (!mir_wstrcmp(XmlGetAttrValue(node, L"xmlns"), L"urn:xmpp:sm:3"))
{
- //TODO: handle failure
+ m_bStrmMgmtEnabled = false;
+ if (XmlGetChild(node, L"item-not-found")) //session timeout
+ {
+ bSessionResumed = false;
+ EnableStrmMgmt(); //resume failed, try to enable strm_mgmt instead
+ }
}
}