Catch and ignore BeaconLib errors

This commit is contained in:
rob-v
2017-05-25 00:45:16 +02:00
committed by Paul Chote
parent e1b7fc2617
commit 9a9920e4af
2 changed files with 29 additions and 7 deletions

View File

@@ -112,9 +112,16 @@ namespace OpenRA.Mods.Common.Widgets.Logic
Game.LoadWidget(null, "GLOBALCHAT_PANEL", widget.Get("GLOBALCHAT_ROOT"), new WidgetArgs());
lanGameLocations = new List<BeaconLocation>();
lanGameProbe = new Probe("OpenRALANGame");
lanGameProbe.BeaconsUpdated += locations => lanGameLocations = locations;
lanGameProbe.Start();
try
{
lanGameProbe = new Probe("OpenRALANGame");
lanGameProbe.BeaconsUpdated += locations => lanGameLocations = locations;
lanGameProbe.Start();
}
catch (Exception ex)
{
Log.Write("debug", "BeaconLib.Probe: " + ex.Message);
}
RefreshServerList();