From f2b7e7d868befc34325998e851eda7bea3467234 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 11 Apr 2014 07:41:32 +0000 Subject: Steam: - added logging - minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@8951 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_thread.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'protocols/Steam/src/steam_thread.cpp') 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 -- cgit v1.2.3