another fix because I'm retarded

bump version up
This commit is contained in:
RaidMax 2019-08-24 14:06:23 -05:00
parent 6726217354
commit a820929582
3 changed files with 13 additions and 5 deletions

View File

@ -6,7 +6,7 @@
<RuntimeFrameworkVersion>2.2.2</RuntimeFrameworkVersion> <RuntimeFrameworkVersion>2.2.2</RuntimeFrameworkVersion>
<MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish> <MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish>
<PackageId>RaidMax.IW4MAdmin.Application</PackageId> <PackageId>RaidMax.IW4MAdmin.Application</PackageId>
<Version>2.2.8.1</Version> <Version>2.2.8.2</Version>
<Authors>RaidMax</Authors> <Authors>RaidMax</Authors>
<Company>Forever None</Company> <Company>Forever None</Company>
<Product>IW4MAdmin</Product> <Product>IW4MAdmin</Product>
@ -33,8 +33,8 @@
<ServerGarbageCollection>false</ServerGarbageCollection> <ServerGarbageCollection>false</ServerGarbageCollection>
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection> <ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
<TieredCompilation>true</TieredCompilation> <TieredCompilation>true</TieredCompilation>
<AssemblyVersion>2.2.8.1</AssemblyVersion> <AssemblyVersion>2.2.8.2</AssemblyVersion>
<FileVersion>2.2.8.1</FileVersion> <FileVersion>2.2.8.2</FileVersion>
<LangVersion>7.1</LangVersion> <LangVersion>7.1</LangVersion>
</PropertyGroup> </PropertyGroup>

View File

@ -48,6 +48,8 @@ namespace IW4MAdmin.Application.IO
await Task.Delay(_reader.UpdateInterval, _server.Manager.CancellationToken); await Task.Delay(_reader.UpdateInterval, _server.Manager.CancellationToken);
} }
_server.Logger.WriteDebug("Stopped polling for changes");
} }
private async Task UpdateLogEvents() private async Task UpdateLogEvents()

View File

@ -564,11 +564,12 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
{ {
if (Plugin.Config.Configuration().StoreClientKills) if (Plugin.Config.Configuration().StoreClientKills)
{ {
OnProcessingPenalty.Wait();
_hitCache.Add(hit); _hitCache.Add(hit);
if (_hitCache.Count > Detection.MAX_TRACKED_HIT_COUNT) if (_hitCache.Count > Detection.MAX_TRACKED_HIT_COUNT)
{ {
OnProcessingPenalty.Wait();
using (var ctx = new DatabaseContext()) using (var ctx = new DatabaseContext())
{ {
ctx.AddRange(_hitCache); ctx.AddRange(_hitCache);
@ -576,8 +577,8 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
} }
_hitCache.Clear(); _hitCache.Clear();
OnProcessingPenalty.Release();
} }
OnProcessingPenalty.Release(1);
} }
@ -630,6 +631,11 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
{ {
_log.WriteError("Could not save hit or AC info"); _log.WriteError("Could not save hit or AC info");
_log.WriteDebug(ex.GetExceptionInfo()); _log.WriteDebug(ex.GetExceptionInfo());
if (OnProcessingPenalty.CurrentCount == 0)
{
OnProcessingPenalty.Release();
}
} }
} }