diff options
Diffstat (limited to 'protocols/SkypeWeb/src')
-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,
|