spawn the background thread for gameservers as well

This commit is contained in:
otavepto 2024-06-01 14:23:33 +03:00
parent 86eb8aa2d0
commit 545bbd17da

View File

@ -310,6 +310,9 @@ HSteamUser Steam_Client::CreateLocalUser( HSteamPipe *phSteamPipe, EAccountType
//} else { //k_EAccountTypeGameServer //} else { //k_EAccountTypeGameServer
serverInit(); serverInit();
// gameservers don't call ConnectToGlobalUser(), instead they call this function
background_thread->start(this);
HSteamPipe pipe = CreateSteamPipe(); HSteamPipe pipe = CreateSteamPipe();
if (phSteamPipe) *phSteamPipe = pipe; if (phSteamPipe) *phSteamPipe = pipe;
steam_pipes[pipe] = Steam_Pipe::SERVER; steam_pipes[pipe] = Steam_Pipe::SERVER;