diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-30 18:00:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-30 18:00:14 +0300 |
commit | 70ed8704f79e79d1a4ce49f651a0887bde7a94f5 (patch) | |
tree | 9e233749e91fde2a9f6b2e74f0bb338adedf02a6 /protocols/Steam/src | |
parent | 666073426fcc0fe8e1247d516e05f1c276fb5a6a (diff) |
fixes #1583 (Steam: enhanced processing of error code 401)
Diffstat (limited to 'protocols/Steam/src')
-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; } |