summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_thread.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-04-11 07:41:32 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-04-11 07:41:32 +0000
commitf2b7e7d868befc34325998e851eda7bea3467234 (patch)
tree0cd9ab3c62e2c6649dd9d72b5cca9f083cbfd3d5 /protocols/Steam/src/steam_thread.cpp
parenta1c0bd56d1f3fce0078fc2fdbc1f863b4572c01b (diff)
Steam:
- added logging - minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@8951 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_thread.cpp')
-rw-r--r--protocols/Steam/src/steam_thread.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/protocols/Steam/src/steam_thread.cpp b/protocols/Steam/src/steam_thread.cpp
index c0b410fab0..d7bdd560c6 100644
--- a/protocols/Steam/src/steam_thread.cpp
+++ b/protocols/Steam/src/steam_thread.cpp
@@ -1,8 +1,9 @@
#include "common.h"
-void CSteamProto::PollStatus(const char *token, const char *sessionId, UINT32 messageId, SteamWebApi::PollApi::PollResult *pollResult)
+void CSteamProto::PollServer(const char *token, const char *sessionId, UINT32 messageId, SteamWebApi::PollApi::PollResult *pollResult)
{
- SteamWebApi::PollApi::PollStatus(m_hNetlibUser, token, sessionId, messageId, pollResult);
+ debugLogA("CSteamProto::PollServer: call SteamWebApi::PollApi::Poll");
+ SteamWebApi::PollApi::Poll(m_hNetlibUser, token, sessionId, messageId, pollResult);
if (!pollResult->IsSuccess())
return;
@@ -90,7 +91,8 @@ void CSteamProto::PollStatus(const char *token, const char *sessionId, UINT32 me
}
if (!updatedIds.IsEmpty())
- ForkThread(&CSteamProto::UpdateContactsThread, mir_strdup(updatedIds));
+ //ForkThread(&CSteamProto::UpdateContactsThread, mir_strdup(updatedIds));
+ UpdateContactsThread(mir_strdup(updatedIds));
}
void CSteamProto::PollingThread(void*)
@@ -104,7 +106,7 @@ void CSteamProto::PollingThread(void*)
SteamWebApi::PollApi::PollResult pollResult;
while (!m_bTerminated)
{
- PollStatus(token, sessionId, messageId, &pollResult);
+ PollServer(token, sessionId, messageId, &pollResult);
if (pollResult.IsNeedRelogin())
debugLogA("CSteamProto::PollingThread: need to relogin");
@@ -121,6 +123,7 @@ void CSteamProto::PollingThread(void*)
if (!pollResult.IsSuccess())
{
+ debugLogA("CSteamProto::PollServer: call SteamWebApi::PollApi::Poll");
SetStatus(ID_STATUS_OFFLINE);
// token has expired