summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_account.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-04-10 13:59:14 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-04-10 13:59:14 +0000
commit9f522eb773175d67693db495250fd7c45dd1ec54 (patch)
tree313ec516286c766ec909c4cafd68a15911380c0b /protocols/Steam/src/steam_account.cpp
parentd8d27c17e7a26a14746d7273316dfac10629e7f1 (diff)
Steam: minor fixes and improvements
git-svn-id: http://svn.miranda-ng.org/main/trunk@8934 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_account.cpp')
-rw-r--r--protocols/Steam/src/steam_account.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_account.cpp b/protocols/Steam/src/steam_account.cpp
index f7d86e7c68..17e47887ab 100644
--- a/protocols/Steam/src/steam_account.cpp
+++ b/protocols/Steam/src/steam_account.cpp
@@ -170,7 +170,7 @@ void CSteamProto::LogInThread(void* param)
LoadContactList();
// start pooling thread
- if (m_hPollingThread == NULL && !m_bTerminated)
+ if (m_hPollingThread == NULL)
{
m_bTerminated = false;
m_hPollingThread = ForkThreadEx(&CSteamProto::PollingThread, NULL, NULL);
@@ -182,6 +182,10 @@ void CSteamProto::LogOutThread(void*)
ptrA token(getStringA("TokenSecret"));
ptrA sessionId(getStringA("SessionID"));
+ while (m_hPollingThread != NULL)
+ Sleep(500);
+
+ m_bTerminated = false;
SteamWebApi::LoginApi::Logoff(m_hNetlibUser, token, sessionId);
delSetting("SessionID");