1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-29 00:20:24 -05:00

Misc Qodana cleanups

This commit is contained in:
Amos
2024-07-02 23:05:47 +01:00
committed by Ayymoss
parent e94a0ae691
commit f2b273b878
13 changed files with 150 additions and 154 deletions

View File

@ -213,7 +213,7 @@ namespace IW4MAdmin.Application
var masterCommunicator = serviceProvider.GetRequiredService<IMasterCommunication>();
var webfrontLifetime = serviceProvider.GetRequiredService<IHostApplicationLifetime>();
using var onWebfrontErrored = new ManualResetEventSlim();
var webfrontTask = _serverManager.GetApplicationSettings().Configuration().EnableWebFront
? WebfrontCore.Program.GetWebHostTask(_serverManager.CancellationToken).ContinueWith(continuation =>
{
@ -226,9 +226,9 @@ namespace IW4MAdmin.Application
continuation.Exception?.InnerException?.Message);
logger.LogDebug(continuation.Exception, "Unable to start webfront task");
onWebfrontErrored.Set();
// ReSharper disable once AccessToDisposedClosure
onWebfrontErrored.Set(); // TODO: Check if this dispose warning is a roslyn issue.
})
: Task.CompletedTask;