diff options
author | aunsane <aunsane@gmail.com> | 2018-03-06 20:19:37 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-03-06 20:20:11 +0300 |
commit | 3eaee7138f6f34cb05c963993eca48b7429f2456 (patch) | |
tree | 8ecad440fe5a6cc319f476c8c4e1acf1649611a2 /protocols/Steam/src | |
parent | 314767f2cd1490ff5765139e0c4c80b5e24e85eb (diff) |
Steam: missed pause between server polls in case when server returns bad error code
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r-- | protocols/Steam/src/steam_polling.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index 0fb9ba7867..04e8253ed3 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -147,6 +147,7 @@ void CSteamProto::OnGotPoll(const HttpResponse &response, void *arg) // bad response debugLogA(__FUNCTION__ ": server returns bad response (%d)", response.GetStatusCode()); param->errors++; + Sleep(STEAM_API_TIMEOUT * 1000); return; } @@ -167,8 +168,9 @@ void CSteamProto::OnGotPoll(const HttpResponse &response, void *arg) return; default: - debugLogA(__FUNCTION__ ": server returns bad status code (%d)", response.GetStatusCode()); + debugLogA(__FUNCTION__ ": server returns unexpected status code (%d)", response.GetStatusCode()); param->errors++; + Sleep(STEAM_API_TIMEOUT * 1000); return; } } |