End our auth session immediately

This commit is contained in:
xen 2025-02-22 18:44:48 +02:00
parent c89f843e65
commit 22cbf25c05

View File

@ -434,6 +434,7 @@ DETOUR_DECL_MEMBER9(CBaseServer__ConnectClient, IClient *, netadr_t &, address,
bool NoSteam = g_SvNoSteam.GetInt() || !BLoggedOn();
bool SteamAuthFailed = false;
EBeginAuthSessionResult result = BeginAuthSession(pvTicket, cbTicket, g_lastClientSteamID);
EndAuthSession(g_lastClientSteamID); // The engine might start its own auth session so end this one
if(result != k_EBeginAuthSessionResultOK)
{
if(!NoSteam)