diff --git a/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs b/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs index 0a9a356e77..a9406e0e8d 100644 --- a/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs +++ b/src/Tgstation.Server.Host/Components/StaticFiles/Configuration.cs @@ -326,16 +326,10 @@ namespace Tgstation.Server.Host.Components.StaticFiles result = ioManager.GetFileStream(path, false); } - using (SemaphoreSlimContext.TryLock(semaphore, out var locked)) - { - if (!locked) - return null; - - if (systemIdentity == null) - await Task.Factory.StartNew(GetFileStream, cancellationToken, DefaultIOManager.BlockingTaskCreationOptions, TaskScheduler.Current); - else - await systemIdentity.RunImpersonated(GetFileStream, cancellationToken); - } + if (systemIdentity == null) + await Task.Factory.StartNew(GetFileStream, cancellationToken, DefaultIOManager.BlockingTaskCreationOptions, TaskScheduler.Current); + else + await systemIdentity.RunImpersonated(GetFileStream, cancellationToken); return result; },