diff options
author | aunsane <aunsane@gmail.com> | 2018-02-03 20:12:34 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-02-03 20:12:55 +0300 |
commit | 106cab98d0aa170af4c96a34f4886597ec0496a6 (patch) | |
tree | 9d41697924a55e796140f24fb8b2cae5415580a2 /protocols/Steam/src/steam_polling.cpp | |
parent | 8b66865f9082099a0735ef82ca5eaa88c1b548b4 (diff) |
Steam: added polling error limit setting
Diffstat (limited to 'protocols/Steam/src/steam_polling.cpp')
-rw-r--r-- | protocols/Steam/src/steam_polling.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index e812e8e87f..b5d27b9c37 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -1,7 +1,5 @@ #include "stdafx.h" -#define POLLING_ERRORS_LIMIT 5 - void CSteamProto::ParsePollData(const JSONNode &data) { std::string steamIds; @@ -221,7 +219,7 @@ void CSteamProto::PollingThread(void*) PollParam param; param.errors = 0; - param.errorsLimit = getByte("PollingErrorsLimit", POLLING_ERRORS_LIMIT); + param.errorsLimit = getByte("PollingErrorsLimit", STEAM_API_POLLING_ERRORS_LIMIT); while (IsOnline() && param.errors < param.errorsLimit) { // request->nlc = m_pollingConnection; ptrA umqId(getStringA("UMQID")); |