From d297561a9c43d05da7f6cbe04dfd73b6b5032aca Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Sep 2022 09:44:08 -0700 Subject: we don't care about retry count --- protocols/JabberG/src/jabber_thread.cpp | 7 +++---- 1 file 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 -- cgit v1.2.3