diff options
author | George Hazan <ghazan@miranda.im> | 2020-08-25 18:59:47 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-08-25 18:59:47 +0300 |
commit | 77fa06bdc1a3efb7689c3ec39c8a943f7a289920 (patch) | |
tree | 53cf77c3770a607ea0e5a75d80749d2ec7a82b90 | |
parent | 0663b8bd76750f161e7ec15bad675a33b31981ca (diff) |
useless code removed
-rw-r--r-- | protocols/SkypeWeb/src/skype_login.cpp | 9 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/stdafx.h | 2 |
2 files changed, 1 insertions, 10 deletions
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<CSkypeProto> #define MODULE "Skype"
-#define SKYPE_MAX_CONNECT_RETRIES 10
-
enum SKYPE_LOGIN_ERROR
{
LOGIN_ERROR_UNKNOWN = 1001,
|