aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Session
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2024-03-18 20:55:18 +0100
committerGitHub <noreply@github.com>2024-03-18 13:55:18 -0600
commiteae031ae5acf948fbc303eb589b469953179f2ed (patch)
tree1748a92da7286e404168e219801ae6c1a8756027 /Emby.Server.Implementations/Session
parent1271e60532aeea3821753d52e3b909725aa53f40 (diff)
refactor: use Channels as queueing mechanism for periodic websocket messages (#11092)
Diffstat (limited to 'Emby.Server.Implementations/Session')
-rw-r--r--Emby.Server.Implementations/Session/SessionManager.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs
index 40b3b0339..75945b08a 100644
--- a/Emby.Server.Implementations/Session/SessionManager.cs
+++ b/Emby.Server.Implementations/Session/SessionManager.cs
@@ -456,8 +456,8 @@ namespace Emby.Server.Implementations.Session
if (!_activeConnections.TryGetValue(key, out var sessionInfo))
{
- _activeConnections[key] = await CreateSession(key, appName, appVersion, deviceId, deviceName, remoteEndPoint, user).ConfigureAwait(false);
- sessionInfo = _activeConnections[key];
+ sessionInfo = await CreateSession(key, appName, appVersion, deviceId, deviceName, remoteEndPoint, user).ConfigureAwait(false);
+ _activeConnections[key] = sessionInfo;
}
sessionInfo.UserId = user?.Id ?? Guid.Empty;
@@ -614,9 +614,6 @@ namespace Emby.Server.Implementations.Session
_logger.LogDebug(ex, "Error calling OnPlaybackStopped");
}
}
-
- playingSessions = Sessions.Where(i => i.NowPlayingItem is not null)
- .ToList();
}
else
{