diff --git a/OpenRA.Mods.Common/ServerTraits/MasterServerPinger.cs b/OpenRA.Mods.Common/ServerTraits/MasterServerPinger.cs index 8a6a760e95..b9379873a6 100644 --- a/OpenRA.Mods.Common/ServerTraits/MasterServerPinger.cs +++ b/OpenRA.Mods.Common/ServerTraits/MasterServerPinger.cs @@ -63,20 +63,6 @@ namespace OpenRA.Mods.Common.Server volatile bool isBusy; readonly Queue masterServerMessages = []; - void CreateLanGameBeacon() - { - try - { - lanGameBeacon?.Stop(); - lanGameBeacon = new Beacon("OpenRALANGame", LanAdvertisePort); - } - catch (Exception ex) - { - lanGameBeacon = null; - Log.Write("server", "BeaconLib.Beacon: " + ex.Message); - } - } - public void Tick(S server) { if (!server.IsMultiplayer) @@ -212,5 +198,19 @@ namespace OpenRA.Mods.Common.Server isBusy = false; }); } + + void CreateLanGameBeacon() + { + try + { + lanGameBeacon?.Stop(); + lanGameBeacon = new Beacon("OpenRALANGame", LanAdvertisePort); + } + catch (Exception ex) + { + lanGameBeacon = null; + Log.Write("server", "BeaconLib.Beacon: " + ex.Message); + } + } } }