mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Fix an issue with a blocking IRC call
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user