1
0
forked from 0ad/0ad

Fix error when hosting lobby game.

Revealed by 0406c4dfde. The fix also avoids sending a redundant
lobbyregistration message.

Reported by: langbart
Differential Revision: https://code.wildfiregames.com/D3923
This was SVN commit r25369.
This commit is contained in:
wraitii 2021-05-04 08:58:22 +00:00
parent 738b200dda
commit 2efe255bbd

View File

@ -73,6 +73,10 @@ class LobbyGameRegistrationController
if (!g_IsController || !Engine.HasXmppClient()) if (!g_IsController || !Engine.HasXmppClient())
return; return;
// Wait until a map has been selected.
if (!g_GameSettings.map.map)
return;
Engine.ProfileStart("sendRegisterGameStanza"); Engine.ProfileStart("sendRegisterGameStanza");
if (this.timer !== undefined) if (this.timer !== undefined)