Work around a race condition with local servers.

This commit is contained in:
Paul Chote
2011-05-10 17:49:33 +12:00
parent 33a4f5e29e
commit 814845730f
3 changed files with 24 additions and 18 deletions

View File

@@ -135,7 +135,7 @@ namespace OpenRA.Mods.Cnc.Widgets
CncConnectingLogic.Connect(IPAddress.Loopback.ToString(),
Game.Settings.Server.LoopbackPort,
new Action(() => OpenLobbyPanel(MenuType.Main)),
new Action(() => ReturnToMenu(MenuType.Main)));
new Action(() => { Game.CloseServer(); ReturnToMenu(MenuType.Main); }));
}
}
}