From 77fa06bdc1a3efb7689c3ec39c8a943f7a289920 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 25 Aug 2020 18:59:47 +0300 Subject: useless code removed --- protocols/SkypeWeb/src/skype_login.cpp | 9 +-------- protocols/SkypeWeb/src/stdafx.h | 2 -- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'protocols/SkypeWeb/src') diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp index 12b058b17c..7ee951fa70 100644 --- a/protocols/SkypeWeb/src/skype_login.cpp +++ b/protocols/SkypeWeb/src/skype_login.cpp @@ -155,14 +155,7 @@ void CSkypeProto::OnEndpointCreated(NETLIBHTTPREQUEST *response, AsyncHttpReques return; } - if (IsStatusConnecting(m_iStatus)) - if (m_iStatus++ > SKYPE_MAX_CONNECT_RETRIES) { - debugLogA(__FUNCTION__ ": failed to create endpoint (too many connect retries)"); - ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_FAILED, NULL, LOGIN_ERROR_UNKNOWN); - SetStatus(ID_STATUS_OFFLINE); - return; - } - + // Succeeded, decode the answer if (auto *hdr = Netlib_GetHeader(response, "Set-RegistrationToken")) { CMStringA szValue = hdr; int iStart = 0; diff --git a/protocols/SkypeWeb/src/stdafx.h b/protocols/SkypeWeb/src/stdafx.h index 82d3253a81..92a970de82 100644 --- a/protocols/SkypeWeb/src/stdafx.h +++ b/protocols/SkypeWeb/src/stdafx.h @@ -126,8 +126,6 @@ struct AsyncHttpRequest : public MTHttpRequest #define MODULE "Skype" -#define SKYPE_MAX_CONNECT_RETRIES 10 - enum SKYPE_LOGIN_ERROR { LOGIN_ERROR_UNKNOWN = 1001, -- cgit v1.2.3