From bef9b685baa605df0739f4c5fe380093db2851ef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Jul 2022 18:47:49 +0300 Subject: fixes #3112 (Steam plugin will not stay connected for more than 1-2 minutes) --- protocols/Steam/src/api/poll.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Steam/src/api') diff --git a/protocols/Steam/src/api/poll.h b/protocols/Steam/src/api/poll.h index 0487411c6c..a8f0ac3edb 100644 --- a/protocols/Steam/src/api/poll.h +++ b/protocols/Steam/src/api/poll.h @@ -5,7 +5,7 @@ class PollRequest : public HttpRequest { public: PollRequest(CSteamProto *ppro) : - HttpRequest(HttpPost, STEAM_API_URL "/ISteamWebUserPresenceOAuth/Poll/v1") + HttpRequest(HttpPost, STEAM_API_URL "/ISteamWebUserPresenceOAuth/Poll/v0001") { timeout = (STEAM_API_TIMEOUT + 5) * 1000; // flags |= NLHRF_PERSISTENT; @@ -16,8 +16,7 @@ public: << CHAR_PARAM("access_token", ppro->getMStringA("TokenSecret")) << CHAR_PARAM("umqid", ppro->getMStringA("UMQID")) << INT64_PARAM("message", ppro->getDword("MessageID")) - << INT_PARAM("secidletime", ppro->IdleSeconds()) - << INT_PARAM("sectimeout", STEAM_API_TIMEOUT); + << INT_PARAM("secidletime", ppro->IdleSeconds()); } //{ -- cgit v1.2.3