diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-05-02 22:22:41 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-05-02 22:22:41 +0000 |
commit | 70436074ae8f66a092d0212fb8b99b94d0fd03a6 (patch) | |
tree | 694fd4a013fd9b81e393bc0cf2d83b51920e009c /protocols/Steam/src/steam_account.cpp | |
parent | 9b111dc84cd76cdbdb3f820237d3de0b1555deb1 (diff) |
Steam: improved contact management
git-svn-id: http://svn.miranda-ng.org/main/trunk@9108 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_account.cpp')
-rw-r--r-- | protocols/Steam/src/steam_account.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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);
|