diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs index e676275632..a04d6dd431 100644 --- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs +++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs @@ -172,10 +172,9 @@ namespace Jellyfin.Server.Implementations.Devices /// public QueryResult GetDevicesForUser(Guid? userId) { - var devices = _devices.Values + IEnumerable devices = _devices.Values .OrderByDescending(d => d.DateLastActivity) - .ThenBy(d => d.DeviceId) - .AsEnumerable(); + .ThenBy(d => d.DeviceId); if (!userId.IsNullOrEmpty()) {