summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_polling.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-11-23 19:40:34 +0000
committerRobert Pösel <robyer@seznam.cz>2015-11-23 19:40:34 +0000
commitb37aadb6fb078912dbf417fc166b1aeeabd1b249 (patch)
tree178b1981c61bbfa0bc2e8968415ec7ffd1a4f51e /protocols/Steam/src/steam_polling.cpp
parent44ac2cea0d7dee5b2fdd085d3a4051d844b18728 (diff)
Steam: Disable using persistent connection for PollRequest as it causes force disconnects (thanks Vulpix for tip)
It might be reenabled in future again, we just need to make sure we're updating and cancelling it correctly in case we receive error or something. Now we remember the new response->nlc only in one branch of that if, which is obviously wrong, because we're trying to use the old nlc anyway without resetting it. But maybe Steam servers doesn't support the polling thread with persistent connection at all, it needs to be tested further. git-svn-id: http://svn.miranda-ng.org/main/trunk@15762 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_polling.cpp')
-rw-r--r--protocols/Steam/src/steam_polling.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp
index 526bf5f9ce..81a58d9846 100644
--- a/protocols/Steam/src/steam_polling.cpp
+++ b/protocols/Steam/src/steam_polling.cpp
@@ -177,7 +177,7 @@ void CSteamProto::PollingThread(void*)
while (!isTerminated && !breaked && errors < errorsLimit)
{
PollRequest *request = new PollRequest(token, umqId, messageId, IdleSeconds());
- request->nlc = m_pollingConnection;
+ // request->nlc = m_pollingConnection;
HttpResponse *response = request->Send(m_hNetlibUser);
delete request;
@@ -215,7 +215,7 @@ void CSteamProto::PollingThread(void*)
json_delete(nroot);
}
- m_pollingConnection = response->nlc;
+ // m_pollingConnection = response->nlc;
}
/*else if (!lstrcmpi(error, _T("Not Logged On"))) // 'else' below will handle this error, we don't need this particular check right now
{