From f0c08538d0cdddb62453761e437cd7d2a3325bd0 Mon Sep 17 00:00:00 2001 From: aunsane Date: Sun, 25 Mar 2018 20:19:18 +0300 Subject: Steam: stop polling when got "Not Logged On" error --- protocols/Steam/src/steam_polling.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Steam/src/steam_polling.cpp') diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index 04e8253ed3..1078b1a037 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -209,8 +209,8 @@ void CSteamProto::OnGotPoll(const HttpResponse &response, void *arg) if (error == "Not Logged On") { // need to relogin - debugLogA(__FUNCTION__ ": not Logged On"); - + debugLogA(__FUNCTION__ ": not logged on"); + param->errors = param->errorsLimit; // 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()) { ptrA token(getStringA("TokenSecret")); -- cgit v1.2.3