diff options
| author | Bond_009 <Bond.009@outlook.com> | 2019-03-27 16:28:52 +0100 |
|---|---|---|
| committer | Bond_009 <Bond.009@outlook.com> | 2019-03-27 16:28:52 +0100 |
| commit | b69b19ddce63651306bde494adfa656fd658b230 (patch) | |
| tree | 8b24bd04f128d72f997f3971f3197fb2971e151f | |
| parent | 6c0e2e249ddbab24c67b655b701e473d9343c2ef (diff) | |
Move messageId out of outer loop
| -rw-r--r-- | Emby.Server.Implementations/Session/SessionManager.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs index 6b9573b1d..53ed5fc22 100644 --- a/Emby.Server.Implementations/Session/SessionManager.cs +++ b/Emby.Server.Implementations/Session/SessionManager.cs @@ -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); |
