Fix an issue with a blocking IRC call

This commit is contained in:
Jordan Brown
2021-08-23 12:09:59 -04:00
parent a22990bc1d
commit 39b7d85437
@@ -329,7 +329,12 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
cancellationToken.ThrowIfCancellationRequested();
try
{
client.Connect(address, port);
await Task.Factory.StartNew(
() => client.Connect(address, port),
cancellationToken,
DefaultIOManager.BlockingTaskCreationOptions,
TaskScheduler.Current)
.ConfigureAwait(false);
cancellationToken.ThrowIfCancellationRequested();