diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_strm_mgmt.cpp')
-rwxr-xr-x | protocols/JabberG/src/jabber_strm_mgmt.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_strm_mgmt.cpp b/protocols/JabberG/src/jabber_strm_mgmt.cpp index 7a02b20471..485174e42d 100755 --- a/protocols/JabberG/src/jabber_strm_mgmt.cpp +++ b/protocols/JabberG/src/jabber_strm_mgmt.cpp @@ -164,6 +164,8 @@ void strm_mgmt::CheckStreamFeatures(HXML node) void strm_mgmt::CheckState()
{
+ if (m_bStrmMgmtEnabled)
+ return;
if (!m_bStrmMgmtPendingEnable)
return;
EnableStrmMgmt();
@@ -201,6 +203,8 @@ void strm_mgmt::HandleIncommingNode(HXML node) void strm_mgmt::EnableStrmMgmt()
{
+ if (m_bStrmMgmtEnabled)
+ return;
if (m_sStrmMgmtResumeId.empty())
{
XmlNode enable_sm(L"enable");
@@ -241,4 +245,9 @@ void strm_mgmt::RequestAck() bool strm_mgmt::IsSessionResumed()
{
return bSessionResumed;
+}
+
+bool strm_mgmt::IsResumeIdPresent()
+{
+ return !m_sStrmMgmtResumeId.empty();
}
\ No newline at end of file |