Fixed call to GSICancelAvailableCheck() causing socket 0 (STDIN) to be closed, any read() afterwards would hang

This commit is contained in:
smallmodel 2023-08-26 16:18:57 +02:00
parent 50d935171e
commit 0209e8f782
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -31,6 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
static char gamemode[128];
static qboolean gcdInitialized = qfalse;
extern GSIACResult __GSIACResult;
static const char *SECRET_GS_KEYS[] =
{
@ -313,8 +314,7 @@ qboolean SV_InitGamespy()
}
// this will set the GSI as available for cdkey authorization
GSICancelAvailableCheck();
GSIAvailableCheckThink();
__GSIACResult = GSIACAvailable;
if (!gcdInitialized) {
if (gcd_game_id) {