using interlocked

This commit is contained in:
Alex
2025-10-20 11:51:35 +01:00
parent d672130eeb
commit f572304444
@@ -7,13 +7,13 @@ namespace SPTarkov.Server.Services;
// ReSharper disable once InconsistentNaming
public class NoGCRegionMiddleware(RequestDelegate next)
{
private static int _activeRequests;
private static long _activeRequests;
private static bool OtherRequestsActive
{
get
{
return _activeRequests > 1;
return Interlocked.Read(ref _activeRequests) > 1;
}
}