diff options
author | George Hazan <ghazan@miranda.im> | 2022-07-10 18:47:49 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-07-10 18:47:49 +0300 |
commit | bef9b685baa605df0739f4c5fe380093db2851ef (patch) | |
tree | f22a4ecbdaf87937c3d07c57be8864014ed3386d /protocols | |
parent | 3e13a0dcca1aeccd5c5272ab046736dd0f33ffa5 (diff) |
fixes #3112 (Steam plugin will not stay connected for more than 1-2 minutes)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Steam/src/api/poll.h | 5 | ||||
-rw-r--r-- | protocols/Steam/src/stdafx.h | 2 | ||||
-rw-r--r-- | protocols/Steam/src/version.h | 6 |
3 files changed, 6 insertions, 7 deletions
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()); } //{ diff --git a/protocols/Steam/src/stdafx.h b/protocols/Steam/src/stdafx.h index 9f15ce8bfc..a7fa9f4406 100644 --- a/protocols/Steam/src/stdafx.h +++ b/protocols/Steam/src/stdafx.h @@ -42,7 +42,7 @@ #define MODULE "Steam"
#define DB_KEY_LASTMSGTS "LastMessageTS"
-#define STEAM_API_TIMEOUT 30
+#define STEAM_API_TIMEOUT 20
#define STEAM_API_IDLEOUT_AWAY 600
#define STEAM_API_IDLEOUT_SNOOZE 8000
diff --git a/protocols/Steam/src/version.h b/protocols/Steam/src/version.h index 4eef0bf165..1552f68657 100644 --- a/protocols/Steam/src/version.h +++ b/protocols/Steam/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
-#define __MINOR_VERSION 95
-#define __RELEASE_NUM 12
-#define __BUILD_NUM 2
+#define __MINOR_VERSION 96
+#define __RELEASE_NUM 1
+#define __BUILD_NUM 1
#include <stdver.h>
|