mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
De-duplicate this initial chat connection TCS completion
This commit is contained in:
@@ -257,15 +257,8 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
cancellationToken)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
try
|
||||
{
|
||||
// DCT: Always wait for the job to complete here
|
||||
await jobManager.WaitForJobCompletion(job, null, cancellationToken, default).ConfigureAwait(false);
|
||||
}
|
||||
finally
|
||||
{
|
||||
initialConnectionTcs.TrySetResult(null);
|
||||
}
|
||||
// DCT: Always wait for the job to complete here
|
||||
await jobManager.WaitForJobCompletion(job, null, cancellationToken, default).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
|
||||
Reference in New Issue
Block a user