Skip to content
Permalink
Browse files

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.
  • Loading branch information...
Robyer committed Dec 5, 2017
1 parent b6cb9d8 commit d00b3533e7d0529e8b47f5684d564d3c2ec25a4d
Showing with 5 additions and 1 deletion.
  1. +5 −1 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);
}
}

0 comments on commit d00b353

Please sign in to comment.
You can’t perform that action at this time.