From d971763aedb5c69b2246389951f8b6bcac1317db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 6 Mar 2015 16:46:50 +0000 Subject: 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 --- protocols/Steam/src/steam_pooling.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protocols/Steam/src/steam_pooling.cpp') 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; } -- cgit v1.2.3