Make Log thread-safe.
Since logging is exposed via static methods, it need to be thread-safe or multiple threads trying to log at the same time will cause bad things to happen.
This commit is contained in:
@@ -22,7 +22,7 @@ namespace OpenRA.Network
|
||||
{
|
||||
try
|
||||
{
|
||||
NatUtility.Logger = Log.Channels["server"].Writer;
|
||||
NatUtility.Logger = Log.Channel("server").Writer;
|
||||
NatUtility.Verbose = Game.Settings.Server.VerboseNatDiscovery;
|
||||
NatUtility.DeviceFound += DeviceFound;
|
||||
Game.Settings.Server.NatDeviceAvailable = false;
|
||||
|
||||
Reference in New Issue
Block a user