Move private methods to the bottom.

This commit is contained in:
Matthias Mailänder
2025-09-22 12:30:04 +02:00
committed by Gustas Kažukauskas
parent 148cd911d5
commit 59ecb8d8a3

View File

@@ -63,20 +63,6 @@ namespace OpenRA.Mods.Common.Server
volatile bool isBusy; volatile bool isBusy;
readonly Queue<string> masterServerMessages = []; readonly Queue<string> 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) public void Tick(S server)
{ {
if (!server.IsMultiplayer) if (!server.IsMultiplayer)
@@ -212,5 +198,19 @@ namespace OpenRA.Mods.Common.Server
isBusy = false; isBusy = false;
}); });
} }
void CreateLanGameBeacon()
{
try
{
lanGameBeacon?.Stop();
lanGameBeacon = new Beacon("OpenRALANGame", LanAdvertisePort);
}
catch (Exception ex)
{
lanGameBeacon = null;
Log.Write("server", "BeaconLib.Beacon: " + ex.Message);
}
}
} }
} }