mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
Fix unecessarily writing out channels jsons
This commit is contained in:
@@ -546,7 +546,7 @@ namespace Tgstation.Server.Host.Components.Chat
|
||||
{
|
||||
trackingContexts.Add(context);
|
||||
lock (mappedChannels)
|
||||
task = Task.WhenAll(trackingContexts.Select(x => x.SetChannels(mappedChannels.Select(y => y.Value.Channel), cancellationToken)));
|
||||
task = context.SetChannels(mappedChannels.Select(y => y.Value.Channel), cancellationToken);
|
||||
}
|
||||
await task.ConfigureAwait(false);
|
||||
return context;
|
||||
|
||||
Reference in New Issue
Block a user