diff options
-rw-r--r-- | protocols/Steam/src/steam_login.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp index 4537b52532..80dee8a4f3 100644 --- a/protocols/Steam/src/steam_login.cpp +++ b/protocols/Steam/src/steam_login.cpp @@ -317,16 +317,17 @@ void CSteamProto::HandleTokenExpired() void CSteamProto::OnLoggedOn(const HttpResponse &response, void *) { - if (!response.IsSuccess()) { - // Probably timeout or no connection, we can do nothing here - debugLogA(__FUNCTION__ ": unknown login error"); + if (response.GetStatusCode() == HTTP_CODE_UNAUTHORIZED) { + // Probably expired TokenSecret SetStatus(ID_STATUS_OFFLINE); + HandleTokenExpired(); return; } - if (response.GetStatusCode() == HTTP_CODE_UNAUTHORIZED) { - // Probably expired TokenSecret - HandleTokenExpired(); + if (!response.IsSuccess()) { + // Probably timeout or no connection, we can do nothing here + debugLogA(__FUNCTION__ ": unknown login error"); + SetStatus(ID_STATUS_OFFLINE); return; } |