diff options
| author | George Hazan <george.hazan@gmail.com> | 2024-12-18 20:16:24 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2024-12-18 20:16:24 +0300 |
| commit | 28caac48700080d759c9538aa552f8f499f511c0 (patch) | |
| tree | adeed7272e7eae26277b9ac3cba529e9d4c398ee | |
| parent | 7dacd72d5ac2d237e31714f1e9993d3a8130a8a4 (diff) | |
even more logs
| -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: |
