summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_polling.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-12-19 20:41:58 +0000
committerRobert Pösel <robyer@seznam.cz>2015-12-19 20:41:58 +0000
commita313a57561b0a4ab336f031f4ccd433d659bb7fb (patch)
treef3daa270979ca5db0f1963e4cd78addae5a29b4e /protocols/Steam/src/steam_polling.cpp
parentf70f9ac1921caf88b7b85821a2bbeeb51e86f293 (diff)
Steam: Remove unused 'isTerminated' property of CSteamProto
This also fixes incorrect quit from PollingThread, because it was previously checking this isTerminated property, which was always false. There is also other isTerminated property - but of RequestQueue - so maybe that's why was there this confusion. git-svn-id: http://svn.miranda-ng.org/main/trunk@15902 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_polling.cpp')
-rw-r--r--protocols/Steam/src/steam_polling.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp
index 17a1aca1e2..43ceece247 100644
--- a/protocols/Steam/src/steam_polling.cpp
+++ b/protocols/Steam/src/steam_polling.cpp
@@ -173,7 +173,7 @@ void CSteamProto::PollingThread(void*)
int errors = 0;
int errorsLimit = getByte("PollingErrorsLimit", POLLING_ERRORS_LIMIT);
- while (!isTerminated && errors < errorsLimit)
+ while (IsOnline() && errors < errorsLimit)
{
PollRequest *request = new PollRequest(token, umqId, messageId, IdleSeconds());
// request->nlc = m_pollingConnection;
@@ -270,7 +270,7 @@ void CSteamProto::PollingThread(void*)
m_hPollingThread = NULL;
debugLog(_T("CSteamProto::PollingThread: leaving"));
- if (!isTerminated)
+ if (IsOnline())
{
debugLog(_T("CSteamProto::PollingThread: unexpected termination; switching protocol to offline"));
SetStatus(ID_STATUS_OFFLINE);