Move messageId out of outer loop
This commit is contained in:
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…
Reference in New Issue
Block a user