mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Fix chat shutdown exception
This commit is contained in:
@@ -646,7 +646,8 @@ namespace Tgstation.Server.Host.Components.Chat
|
||||
public async Task StopAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
handlerCts.Cancel();
|
||||
await chatHandler.ConfigureAwait(false);
|
||||
if (chatHandler != null)
|
||||
await chatHandler.ConfigureAwait(false);
|
||||
await Task.WhenAll(providers.Select(x => x.Value).Select(x => x.Disconnect(cancellationToken))).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user