diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-03-06 16:46:50 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-03-06 16:46:50 +0000 |
commit | d971763aedb5c69b2246389951f8b6bcac1317db (patch) | |
tree | a423c2d26a38b48ee16ea179fcc03fc16446c7f1 /protocols/Steam/src/steam_pooling.cpp | |
parent | 615a53f6195f25a3d1b517f10f8957d0f0583768 (diff) |
Steam: Send also timeout number in poll requests
I'm not sure if this makes any difference, but lets have it there.
Also I slighly raised internal timeout and add check for returned timeout number.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12353 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_pooling.cpp')
-rw-r--r-- | protocols/Steam/src/steam_pooling.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_pooling.cpp b/protocols/Steam/src/steam_pooling.cpp index 374ccc4caa..7097cc0dff 100644 --- a/protocols/Steam/src/steam_pooling.cpp +++ b/protocols/Steam/src/steam_pooling.cpp @@ -240,6 +240,12 @@ void CSteamProto::PollingThread(void*) if (response->resultCode == HTTP_STATUS_UNAUTHORIZED) delSetting("TokenSecret"); + // too low timeout? + node = json_get(root, "sectimeout"); + int timeout = json_as_int(node); + if (timeout < STEAM_API_TIMEOUT) + debugLog(_T("CSteamProto::PollingThread: Timeout is too low (%d)"), timeout); + breaked = true; } |