From a3882501b1b83a1402a6e05681bb86e86f83753e Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 25 Dec 2017 13:22:29 +0000 Subject: [PATCH] Ignore malformed LAN advertisements instead of crashing. This matches the behaviour for online game handling. --- OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs index 954ed93037..1afe6db4d4 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs @@ -317,7 +317,11 @@ namespace OpenRA.Mods.Common.Widgets.Logic if (addressNode != null) addressNode.Value.Value = bl.Address.ToString().Split(':')[0] + ":" + addressNode.Value.Value.Split(':')[1]; - lanGames.Add(new GameServer(game)); + try + { + lanGames.Add(new GameServer(game)); + } + catch { } } }