summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_login.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-22 19:43:06 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-22 19:43:06 +0000
commit15dfb1f918233b5f083a02fc01c264889ee90351 (patch)
tree045e3326ca6c0e8a37e20173b07d4fac8614b44d /protocols/SkypeWeb/src/skype_login.cpp
parent793ed2c300803e66baf0e39559cf6cc71e4766b2 (diff)
SkypeWeb:reverted previous commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@15014 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_login.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_login.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp
index 3a9446553c..3db5b33aaf 100644
--- a/protocols/SkypeWeb/src/skype_login.cpp
+++ b/protocols/SkypeWeb/src/skype_login.cpp
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
UINT_PTR CSkypeProto::m_timer;
-void CSkypeProto::Login(void*)
+void CSkypeProto::Login()
{
// login
m_iStatus = ID_STATUS_CONNECTING;
@@ -34,11 +34,6 @@ void CSkypeProto::Login(void*)
ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_FAILED, NULL, LOGIN_ERROR_UNKNOWN);
return;
}
-
- mir_cslock lck(m_LoginLock);
-
- if (m_iStatus > ID_STATUS_OFFLINE) return;
-
HistorySynced = isTerminated = false;
if ((tokenExpires - 1800) > time(NULL))
OnLoginSuccess();
@@ -49,10 +44,6 @@ void CSkypeProto::Login(void*)
else
SendRequest(new LoginOAuthRequest(li.szSkypename, szPassword), &CSkypeProto::OnLoginOAuth);
}
-
- ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)m_iStatus, ID_STATUS_CONNECTING);
-
- WaitForSingleObject(m_hLoginEvent, INFINITE);
}
void CSkypeProto::OnLoginOAuth(const NETLIBHTTPREQUEST *response)
@@ -266,8 +257,6 @@ void CSkypeProto::OnCapabilitiesSended(const NETLIBHTTPREQUEST *response)
m_hPollingThread = ForkThreadEx(&CSkypeProto::PollingThread, 0, NULL);
- SetEvent(m_hLoginEvent);
-
SendRequest(new LoadChatsRequest(li), &CSkypeProto::OnLoadChats);
SendRequest(new CreateTrouterRequest(), &CSkypeProto::OnCreateTrouter);
PushRequest(new GetContactListRequest(li, NULL), &CSkypeProto::LoadContactList);