From 7774e1ced73f710d2a01a07a26baacbd7f19f84d Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 18 Apr 2015 13:04:59 +0000 Subject: SkypeWeb: Login/logout refactoring part 2. SyncHistory improvements. git-svn-id: http://svn.miranda-ng.org/main/trunk@12909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_proto.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_proto.cpp') diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index 4cee50e5f6..79379a1ade 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -172,18 +172,10 @@ int CSkypeProto::SetStatus(int iNewStatus) if (m_pollingConnection) CallService(MS_NETLIB_SHUTDOWN, (WPARAM)m_pollingConnection, 0); - /*if (m_iStatus > ID_STATUS_CONNECTING + 1) + if (m_iStatus > ID_STATUS_CONNECTING + 1) { - LogoutRequest *logoutRequest = new LogoutRequest(); - if (!cookies.empty()) - { - CMStringA allCookies; - for (std::map::iterator cookie = cookies.begin(); cookie != cookies.end(); ++cookie) - allCookies.AppendFormat("%s=%s; ", cookie->first.c_str(), cookie->second.c_str()); - logoutRequest->Headers << CHAR_VALUE("Cookie", allCookies); - } - PushRequest(logoutRequest); - }*/ + SendRequest(new DeleteEndpointRequest(RegToken, EndpointId, Server)); + } requestQueue->Stop(); if (!Miranda_Terminated()) -- cgit v1.2.3