mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
fix concurrency issue with accent color setup
This commit is contained in:
@ -1111,15 +1111,6 @@ namespace IW4MAdmin
|
||||
Version = RconParser.Version;
|
||||
}
|
||||
|
||||
if (!RconParser.Configuration.ColorCodeMapping.ContainsKey(ColorCodes.Accent.ToString()))
|
||||
{
|
||||
var accentKey = Manager.GetApplicationSettings().Configuration().IngameAccentColorKey;
|
||||
RconParser.Configuration.ColorCodeMapping.Add(ColorCodes.Accent.ToString(),
|
||||
RconParser.Configuration.ColorCodeMapping.TryGetValue(accentKey, out var colorCode)
|
||||
? colorCode
|
||||
: "");
|
||||
}
|
||||
|
||||
var svRunning = await this.GetMappedDvarValueOrDefaultAsync<string>("sv_running");
|
||||
|
||||
if (!string.IsNullOrEmpty(svRunning.Value) && svRunning.Value != "1")
|
||||
|
Reference in New Issue
Block a user