Fix small issue with saving client kills multithreaded
This commit is contained in:
parent
91078eec0f
commit
652f3fb86b
@ -555,6 +555,8 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (Plugin.Config.Configuration().StoreClientKills)
|
if (Plugin.Config.Configuration().StoreClientKills)
|
||||||
|
{
|
||||||
|
lock (_hitCache)
|
||||||
{
|
{
|
||||||
_hitCache.Add(hit);
|
_hitCache.Add(hit);
|
||||||
|
|
||||||
@ -570,6 +572,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
|
|||||||
_hitCache.Clear();
|
_hitCache.Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (Plugin.Config.Configuration().EnableAntiCheat && !attacker.IsBot && attacker.ClientId != victim.ClientId)
|
if (Plugin.Config.Configuration().EnableAntiCheat && !attacker.IsBot && attacker.ClientId != victim.ClientId)
|
||||||
|
Loading…
Reference in New Issue
Block a user