diff options
-rw-r--r-- | protocols/Steam/src/steam_polling.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index d353ffaccb..526bf5f9ce 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -1,6 +1,6 @@ #include "stdafx.h" -#define POLLING_ERRORS_LIMIT 3 +#define POLLING_ERRORS_LIMIT 5 void CSteamProto::ParsePollData(JSONNode *data) { @@ -172,8 +172,9 @@ void CSteamProto::PollingThread(void*) UINT32 messageId = getDword("MessageID", 0); int errors = 0; + int errorsLimit = getByte("PollingErrorsLimit", POLLING_ERRORS_LIMIT); bool breaked = false; - while (!isTerminated && !breaked && errors < POLLING_ERRORS_LIMIT) + while (!isTerminated && !breaked && errors < errorsLimit) { PollRequest *request = new PollRequest(token, umqId, messageId, IdleSeconds()); request->nlc = m_pollingConnection; |