diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-11 21:04:11 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-11 21:04:11 +0000 |
commit | 481bff2e2bd0bfd1ce306a2a514e63145fb63917 (patch) | |
tree | 754850ada56aabb7535b5362ef2ea02bca2a8beb /protocols/Steam/src/steam_account.cpp | |
parent | 50ae2aaaa5c7f935eb54fbc9fade7fdbed4a4111 (diff) |
Steam:
- fixed minor issues
- added detection of playing contacts
- added reaction on adding/removing contacts (from steam app)
git-svn-id: http://svn.miranda-ng.org/main/trunk@8961 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_account.cpp')
-rw-r--r-- | protocols/Steam/src/steam_account.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Steam/src/steam_account.cpp b/protocols/Steam/src/steam_account.cpp index c580efeab0..8e72904583 100644 --- a/protocols/Steam/src/steam_account.cpp +++ b/protocols/Steam/src/steam_account.cpp @@ -123,8 +123,8 @@ void CSteamProto::Authorize(SteamWebApi::AuthorizationApi::AuthResult *authResul void CSteamProto::LogInThread(void* param)
{
- if (this->IsOnline())
- return;
+ while (m_bTerminated && m_hPollingThread != NULL)
+ Sleep(500);
ptrA token(getStringA("TokenSecret"));
if (!token || lstrlenA(token) == 0)
@@ -194,12 +194,12 @@ void CSteamProto::LogOutThread(void*) ptrA token(getStringA("TokenSecret"));
ptrA sessionId(getStringA("SessionID"));
- while (m_hPollingThread != NULL)
+ while (m_bTerminated && m_hPollingThread != NULL)
Sleep(500);
- m_bTerminated = false;
debugLogA("CSteamProto::LogOutThread: call SteamWebApi::LoginApi::Logoff");
SteamWebApi::LoginApi::Logoff(m_hNetlibUser, token, sessionId);
delSetting("SessionID");
+ m_bTerminated = false;
}
\ No newline at end of file |