diff --git a/src/Tgstation.Server.Host/Swarm/SwarmService.cs b/src/Tgstation.Server.Host/Swarm/SwarmService.cs index 1e22691426..a41b0cba00 100644 --- a/src/Tgstation.Server.Host/Swarm/SwarmService.cs +++ b/src/Tgstation.Server.Host/Swarm/SwarmService.cs @@ -704,10 +704,11 @@ namespace Tgstation.Server.Host.Swarm Address = swarmConfiguration.ControllerAddress, }); - return Task.WhenAll( - swarmServers - .Where(x => !x.Controller) - .Select(SendRemoteAbort)); + lock (swarmServers) + return Task.WhenAll( + swarmServers + .Where(x => !x.Controller) + .Select(SendRemoteAbort)); } ///