1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-13 16:48:27 -05:00

Additional zombie stast work

This commit is contained in:
RaidMax
2024-02-11 22:10:12 -06:00
parent 122b6dc79d
commit e1461582fa
45 changed files with 7663 additions and 292 deletions

View File

@ -45,15 +45,13 @@ namespace IW4MAdmin.Application
public void StartProcessing(CancellationToken token)
{
_cancellationToken = token;
while (!_cancellationToken.IsCancellationRequested)
while (!token.IsCancellationRequested)
{
_onEventReady.Reset();
try
{
_onProcessingEvents.Wait(_cancellationToken);
_onProcessingEvents.Wait(token);
if (!_runningEventTasks.TryDequeue(out var coreEvent))
{
@ -62,7 +60,7 @@ namespace IW4MAdmin.Application
_onProcessingEvents.Release(1);
}
_onEventReady.Wait(_cancellationToken);
_onEventReady.Wait(token);
continue;
}