mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-09 22:28:38 +01:00
Small mutex fix.
This commit is contained in:
parent
714904b984
commit
1c141783ac
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,6 @@ bool BLoggedOn()
|
||||||
CSteamID GetSteamID()
|
CSteamID GetSteamID()
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("Steam_User::GetSteamID\n");
|
PRINT_DEBUG("Steam_User::GetSteamID\n");
|
||||||
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
|
||||||
CSteamID id = settings->get_local_steam_id();
|
CSteamID id = settings->get_local_steam_id();
|
||||||
|
|
||||||
return id;
|
return id;
|
||||||
|
@ -110,6 +109,7 @@ CSteamID GetSteamID()
|
||||||
int InitiateGameConnection( void *pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint32 unIPServer, uint16 usPortServer, bool bSecure )
|
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);
|
PRINT_DEBUG("InitiateGameConnection %i %llu %u %u %u\n", cbMaxAuthBlob, steamIDGameServer.ConvertToUint64(), unIPServer, usPortServer, bSecure);
|
||||||
|
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||||
if (cbMaxAuthBlob < INITIATE_GAME_CONNECTION_TICKET_SIZE) return 0;
|
if (cbMaxAuthBlob < INITIATE_GAME_CONNECTION_TICKET_SIZE) return 0;
|
||||||
uint32 out_size = INITIATE_GAME_CONNECTION_TICKET_SIZE;
|
uint32 out_size = INITIATE_GAME_CONNECTION_TICKET_SIZE;
|
||||||
ticket_manager->getTicketData(pAuthBlob, INITIATE_GAME_CONNECTION_TICKET_SIZE, &out_size);
|
ticket_manager->getTicketData(pAuthBlob, INITIATE_GAME_CONNECTION_TICKET_SIZE, &out_size);
|
||||||
|
|
Loading…
Reference in a new issue