From 70436074ae8f66a092d0212fb8b99b94d0fd03a6 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 2 May 2014 22:22:41 +0000 Subject: Steam: improved contact management git-svn-id: http://svn.miranda-ng.org/main/trunk@9108 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_account.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Steam/src/steam_account.cpp') diff --git a/protocols/Steam/src/steam_account.cpp b/protocols/Steam/src/steam_account.cpp index 0335d40b1d..13708c50f7 100644 --- a/protocols/Steam/src/steam_account.cpp +++ b/protocols/Steam/src/steam_account.cpp @@ -146,7 +146,7 @@ void CSteamProto::LogInThread(void* param) token = mir_strdup(authResult.GetToken()); setString("TokenSecret", token); - setString("Cookie", authResult.GetCookie()); + //setString("Cookie", authResult.GetCookie()); setString("SteamID", authResult.GetSteamid()); setString("SessionID", authResult.GetSessionId()); } @@ -180,7 +180,7 @@ void CSteamProto::LogInThread(void* param) m_iStatus = m_iDesiredStatus; ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)ID_STATUS_CONNECTING, m_iStatus); - ptrA sessionId(getStringA("SessionID")); + /*ptrA sessionId(getStringA("SessionID")); if (!sessionId || lstrlenA(sessionId) == 0) { SteamWebApi::SessionApi::SessionId result; @@ -188,7 +188,7 @@ void CSteamProto::LogInThread(void* param) SteamWebApi::SessionApi::GetSessionId(m_hNetlibUser, token, loginResult.GetSteamId(), &result); if (result.IsSuccess()) setString("SessionID", result.GetSessionId()); - } + }*/ // load contact list LoadContactListThread(NULL); @@ -206,8 +206,8 @@ void CSteamProto::LogOutThread(void*) ptrA token(getStringA("TokenSecret")); ptrA umqId(getStringA("UMQID")); - while (m_bTerminated && m_hPollingThread != NULL) - Sleep(500); + while (!Miranda_Terminated() && m_bTerminated && m_hPollingThread != NULL) + Sleep(200); debugLogA("CSteamProto::LogOutThread: call SteamWebApi::LoginApi::Logoff"); SteamWebApi::LoginApi::Logoff(m_hNetlibUser, token, umqId); -- cgit v1.2.3