diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-12-05 14:04:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-05 14:04:35 +0100 |
commit | d00b3533e7d0529e8b47f5684d564d3c2ec25a4d (patch) | |
tree | a837d12a2300a902bba7b197bafda99f39404b6d | |
parent | b6cb9d8d0d77cd09b288b9882b0bc1ff44aafa24 (diff) |
Steam: Fix unending connecting when "clear_password_field" error
Previously connecting was stuck when plugin received "clear_password_field" error. This commit fixes that by switching plugin to offline in that case.
-rw-r--r-- | protocols/Steam/src/steam_login.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp index 2f883517e9..c1ef9b09f0 100644 --- a/protocols/Steam/src/steam_login.cpp +++ b/protocols/Steam/src/steam_login.cpp @@ -184,6 +184,10 @@ void CSteamProto::OnAuthorizationError(const JSONNode &node) if (node["clear_password_field"].as_bool()) { debugLogA("CSteamProto::OnAuthorizationError: clear password field"); + + // Probably wrong password entered? + DeleteAuthSettings(); + SetStatus(ID_STATUS_OFFLINE); return; } @@ -401,4 +405,4 @@ void CSteamProto::OnLoggedOn(const HttpResponse *response) // start polling thread m_hPollingThread = ForkThreadEx(&CSteamProto::PollingThread, nullptr, nullptr); -}
\ No newline at end of file +} |