From d00b3533e7d0529e8b47f5684d564d3c2ec25a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 5 Dec 2017 14:04:35 +0100 Subject: 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. --- protocols/Steam/src/steam_login.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'protocols/Steam') 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 +} -- cgit v1.2.3