Fix unecessarily writing out channels jsons

This commit is contained in:
Jordan Brown
2018-09-25 23:10:15 -04:00
parent ab6aeafee2
commit e0a13075ad
@@ -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;