summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_polling.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-12-31 17:13:35 +0300
committeraunsane <aunsane@gmail.com>2017-12-31 17:14:02 +0300
commit9682ce6e05865f2267f4bed4d74f0e1e890baccc (patch)
treecda2b21053379f16f06cccd1aae1b0f449e42c8e /protocols/Steam/src/steam_polling.cpp
parent671587fcdbbff6c13b5c09101d691c38d77170a8 (diff)
Steam: fix status switching to offline on server error
Diffstat (limited to 'protocols/Steam/src/steam_polling.cpp')
-rw-r--r--protocols/Steam/src/steam_polling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp
index 2397b7531c..182f9df783 100644
--- a/protocols/Steam/src/steam_polling.cpp
+++ b/protocols/Steam/src/steam_polling.cpp
@@ -197,7 +197,7 @@ void CSteamProto::OnGotPoll(const HttpResponse &response, void *arg)
debugLogA(__FUNCTION__ ": Not Logged On");
// try to reconnect only when we're actually online (during normal logout we will still got this error anyway, but in that case our status is already offline)
- if (!IsOnline() && !Relogin())
+ if (!IsOnline() || !Relogin())
{
// let it jump out of further processing
param->errors = param->errorsLimit;