De-duplicate this initial chat connection TCS completion

This commit is contained in:
Jordan Brown
2021-08-30 15:42:43 -04:00
parent 82003f469d
commit 96c69cec3b
@@ -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)