Move messageId out of outer loop

This commit is contained in:
Bond_009 2019-03-27 16:28:52 +01:00
parent 6c0e2e249d
commit b69b19ddce

View File

@ -1041,11 +1041,10 @@ namespace Emby.Server.Implementations.Session
{
IEnumerable<Task> GetTasks()
{
var messageId = Guid.NewGuid().ToString("N");
foreach (var session in sessions)
{
var controllers = session.SessionControllers;
var messageId = Guid.NewGuid().ToString("N");
foreach (var controller in controllers)
{
yield return controller.SendMessage(name, messageId, data, controllers, cancellationToken);