diff options
Diffstat (limited to 'protocols/Steam/src')
| -rw-r--r-- | protocols/Steam/src/steam_login.cpp | 7 | ||||
| -rw-r--r-- | protocols/Steam/src/steam_ws.cpp | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp index 9b57ec0c4e..0cd18e10cc 100644 --- a/protocols/Steam/src/steam_login.cpp +++ b/protocols/Steam/src/steam_login.cpp @@ -196,11 +196,10 @@ void CSteamProto::SendConfirmationCode(bool isEmail, const char *pszCode) void CSteamProto::OnGotConfirmationCode(const CAuthenticationUpdateAuthSessionWithSteamGuardCodeResponse &, const CMsgProtoBufHeader &hdr) { - if (hdr.failed()) { - debugLogA("2fa code failed with error code %d", hdr.eresult); + if (hdr.failed()) Logout(); - } - else SendPollRequest(); + else + SendPollRequest(); } ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/protocols/Steam/src/steam_ws.cpp b/protocols/Steam/src/steam_ws.cpp index 963ebf6f9d..d9a90adeab 100644 --- a/protocols/Steam/src/steam_ws.cpp +++ b/protocols/Steam/src/steam_ws.cpp @@ -166,6 +166,9 @@ void CSteamProto::ProcessMessage(const uint8_t *buf, size_t cbLen) cbLen -= 30; } + if (hdr.has_eresult && hdr.eresult != (int)EResult::OK) + debugLogA("HDR: error code %d", hdr.eresult); + // persistent callbacks switch (msgType) { case EMsg::ServiceMethod: |
