diff options
| author | mbastian77 <michael.bastian@visop.de> | 2026-07-15 11:56:54 +0200 |
|---|---|---|
| committer | mbastian77 <michael.bastian@visop.de> | 2026-07-23 03:25:58 +0200 |
| commit | fc0af1050912b94daa6c40455985cb61b12f4486 (patch) | |
| tree | 829784d737f3ae4f891c3e6249542be6effc307c /Emby.Server.Implementations | |
| parent | ed61acc19a958ceaf8de6f6f0f481b2b5370463a (diff) | |
Avoid unnecessary list allocation in CheckForIdlePlayback
Diffstat (limited to 'Emby.Server.Implementations')
| -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 828bdd6859..5d62332552 100644 --- a/Emby.Server.Implementations/Session/SessionManager.cs +++ b/Emby.Server.Implementations/Session/SessionManager.cs @@ -641,8 +641,7 @@ namespace Emby.Server.Implementations.Session if (playingSessions.Count > 0) { var idle = playingSessions - .Where(i => (DateTime.UtcNow - i.LastPlaybackCheckIn).TotalMinutes > 5) - .ToList(); + .Where(i => (DateTime.UtcNow - i.LastPlaybackCheckIn).TotalMinutes > 5); foreach (var session in idle) { |
