From 545bbd17da7b6c9b2c804e94e91b260b59d65b15 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sat, 1 Jun 2024 14:23:33 +0300 Subject: [PATCH] spawn the background thread for gameservers as well --- dll/steam_client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dll/steam_client.cpp b/dll/steam_client.cpp index 69e70afd..1325f74e 100644 --- a/dll/steam_client.cpp +++ b/dll/steam_client.cpp @@ -310,6 +310,9 @@ HSteamUser Steam_Client::CreateLocalUser( HSteamPipe *phSteamPipe, EAccountType //} else { //k_EAccountTypeGameServer serverInit(); + // gameservers don't call ConnectToGlobalUser(), instead they call this function + background_thread->start(this); + HSteamPipe pipe = CreateSteamPipe(); if (phSteamPipe) *phSteamPipe = pipe; steam_pipes[pipe] = Steam_Pipe::SERVER;