diff options
-rw-r--r-- | protocols/Steam/src/steam_polling.cpp | 4 | ||||
-rw-r--r-- | protocols/Steam/src/steam_proto.cpp | 1 | ||||
-rw-r--r-- | protocols/Steam/src/steam_proto.h | 1 |
3 files changed, 2 insertions, 4 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); diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index 2656442ad8..c8cdb86ed3 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -7,7 +7,6 @@ CSteamProto::CSteamProto(const char* protoName, const TCHAR* userName) CreateProtoService(PS_CREATEACCMGRUI, &CSteamProto::OnAccountManagerInit); m_idleTS = 0; - isTerminated = false; isLoginAgain = false; m_hQueueThread = NULL; m_pollingConnection = NULL; diff --git a/protocols/Steam/src/steam_proto.h b/protocols/Steam/src/steam_proto.h index 34eafd3d7d..613a50c6b4 100644 --- a/protocols/Steam/src/steam_proto.h +++ b/protocols/Steam/src/steam_proto.h @@ -72,7 +72,6 @@ public: protected:
TCHAR *password;
- bool isTerminated;
bool isLoginAgain;
time_t m_idleTS;
HANDLE m_evRequestsQueue, m_hQueueThread;
|