summaryrefslogtreecommitdiff
path: root/protocols/Steam
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-12-05 14:04:35 +0100
committerGitHub <noreply@github.com>2017-12-05 14:04:35 +0100
commitd00b3533e7d0529e8b47f5684d564d3c2ec25a4d (patch)
treea837d12a2300a902bba7b197bafda99f39404b6d /protocols/Steam
parentb6cb9d8d0d77cd09b288b9882b0bc1ff44aafa24 (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.
Diffstat (limited to 'protocols/Steam')
-rw-r--r--protocols/Steam/src/steam_login.cpp6
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
+}