Do not register servers twice

Advertise_OnChange is CV_NETVAR, so the server will get registered by CV_LoadNetVars when the server starts.

This race condition occasionally pops up in master, but got very consistent with uncapped.
This commit is contained in:
Sally Coolatta 2022-05-04 05:20:32 -04:00 committed by Eidolon
parent f24ce13083
commit aca0f168bc

View file

@ -4034,10 +4034,6 @@ boolean SV_SpawnServer(void)
if (netgame && I_NetOpenSocket)
{
I_NetOpenSocket();
#ifdef MASTERSERVER
if (cv_advertise.value)
RegisterServer();
#endif
}
// non dedicated server just connect to itself