From 1c141783ac63841b9c01bf495e5c7e54a369088c Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Sat, 23 May 2020 09:10:56 -0400 Subject: [PATCH] Small mutex fix. --- dll/steam_user.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/steam_user.h b/dll/steam_user.h index 35875ec..77fda24 100644 --- a/dll/steam_user.h +++ b/dll/steam_user.h @@ -82,7 +82,6 @@ bool BLoggedOn() CSteamID GetSteamID() { PRINT_DEBUG("Steam_User::GetSteamID\n"); - std::lock_guard lock(global_mutex); CSteamID id = settings->get_local_steam_id(); return id; @@ -110,6 +109,7 @@ CSteamID GetSteamID() int InitiateGameConnection( void *pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint32 unIPServer, uint16 usPortServer, bool bSecure ) { PRINT_DEBUG("InitiateGameConnection %i %llu %u %u %u\n", cbMaxAuthBlob, steamIDGameServer.ConvertToUint64(), unIPServer, usPortServer, bSecure); + std::lock_guard lock(global_mutex); if (cbMaxAuthBlob < INITIATE_GAME_CONNECTION_TICKET_SIZE) return 0; uint32 out_size = INITIATE_GAME_CONNECTION_TICKET_SIZE; ticket_manager->getTicketData(pAuthBlob, INITIATE_GAME_CONNECTION_TICKET_SIZE, &out_size);