Move messageId out of outer loop

pull/1156/head
Bond_009 6 years ago
parent 6c0e2e249d
commit b69b19ddce

@ -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);

Loading…
Cancel
Save