From a094253430be0bce085860beeb55e457f4a24175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 19 Dec 2015 14:33:24 +0000 Subject: Steam: Fix handling errors in PollingThread processing (broken in r15373) git-svn-id: http://svn.miranda-ng.org/main/trunk@15895 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_polling.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'protocols/Steam/src/steam_polling.cpp') diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index 81a58d9846..99f4828938 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -217,6 +217,10 @@ void CSteamProto::PollingThread(void*) // m_pollingConnection = response->nlc; } + else if (!lstrcmpi(error, _T("Timeout"))) + { + // Do nothing as this is not necessarily an error + } /*else if (!lstrcmpi(error, _T("Not Logged On"))) // 'else' below will handle this error, we don't need this particular check right now { if (!IsOnline()) @@ -229,7 +233,7 @@ void CSteamProto::PollingThread(void*) breaked = true; }*/ - else if (lstrcmpi(error, _T("Timeout"))) + else { // something wrong debugLog(_T("CSteamProto::PollingThread: %s (%d)"), error, response->resultCode); -- cgit v1.2.3