mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 08:33:19 +01:00
Fix race condition in JobsRequiredTest cleanup
This commit is contained in:
@@ -50,7 +50,14 @@ namespace Tgstation.Server.Tests.Live.Instance
|
||||
{
|
||||
cancellationTokenSource.Cancel();
|
||||
cancellationTokenSource.Dispose();
|
||||
await hubConnectionTask;
|
||||
try
|
||||
{
|
||||
await hubConnectionTask;
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
}
|
||||
|
||||
if (hubConnection != null)
|
||||
await hubConnection.DisposeAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user