diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-11-09 22:07:49 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-11-09 22:07:49 +0000 |
commit | 50e59aeffd742472baafd18d2fa3a5e1db2c3e19 (patch) | |
tree | 1581146eaab92c1cb754c18b3bd70d212b8719e1 /protocols/Steam | |
parent | 8ea94a560b5c37003f4fffa7ff4be86eab792fee (diff) |
Steam: Add hidden setting "PollingErrorsLimit" (byte) for setting how many times polling tries before giving up, and raise default value from 3 to 5
git-svn-id: http://svn.miranda-ng.org/main/trunk@15706 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam')
-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; |