diff --git a/src/Tgstation.Server.Host/Core/SemaphoreSlimContext.cs b/src/Tgstation.Server.Host/Core/SemaphoreSlimContext.cs index 2fd1896e8d..bb517656ff 100644 --- a/src/Tgstation.Server.Host/Core/SemaphoreSlimContext.cs +++ b/src/Tgstation.Server.Host/Core/SemaphoreSlimContext.cs @@ -19,8 +19,8 @@ namespace Tgstation.Server.Host.Core { if (semaphore == null) throw new ArgumentNullException(nameof(semaphore)); - await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false); cancellationToken.ThrowIfCancellationRequested(); + await semaphore.WaitAsync(cancellationToken).ConfigureAwait(false); return new SemaphoreSlimContext(semaphore); }