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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user