diff options
author | George Hazan <ghazan@miranda.im> | 2022-09-12 09:44:08 -0700 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-09-12 09:44:08 -0700 |
commit | d297561a9c43d05da7f6cbe04dfd73b6b5032aca (patch) | |
tree | e448f2a3769b535add94d6608a9d3fa4f74c0242 /protocols/JabberG/src | |
parent | 1a4009255fe49139322230c1b10e34212b1444c7 (diff) |
we don't care about retry count
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_thread.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index ae2b7d9956..9a11faba97 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -247,10 +247,9 @@ void CJabberProto::ServerThread(JABBER_CONN_DATA *pParam) return;
}
- int iRetryCount = 0;
do {
ThreadData info(this, pParam);
- if (!ServerThreadStub(info, iRetryCount++))
+ if (!ServerThreadStub(info))
break;
} while (m_StrmMgmt.IsResumeIdPresent());
@@ -286,7 +285,7 @@ void CJabberProto::ServerThread(JABBER_CONN_DATA *pParam) WindowList_Broadcast(m_hWindowList, WM_JABBER_REFRESH_VCARD, 0, 0);
}
-bool CJabberProto::ServerThreadStub(ThreadData &info, int iRetryCount)
+bool CJabberProto::ServerThreadStub(ThreadData &info)
{
debugLogA("Thread started: type=%d", info.bIsReg);
@@ -423,7 +422,7 @@ bool CJabberProto::ServerThreadStub(ThreadData &info, int iRetryCount) else info.conn.SetProgress(100, TranslateT("Error: Cannot connect to the server"));
debugLogA("Thread ended, connection failed");
- return (m_bEnableStreamMgmt && iRetryCount < 3);
+ return true;
}
// Determine local IP
|