mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Fix SwarmService.RemoteAbortUpdate race condition
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user