From 7f0f93eb4a48a8f064112cb54d61279da5e4c833 Mon Sep 17 00:00:00 2001 From: gnattu Date: Sat, 20 Jul 2024 20:42:31 +0800 Subject: [PATCH] Update Jellyfin.Server.Implementations/Devices/DeviceManager.cs Co-authored-by: Bond-009 --- Jellyfin.Server.Implementations/Devices/DeviceManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs index 387cc990e..5d5963edd 100644 --- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs +++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs @@ -123,7 +123,7 @@ namespace Jellyfin.Server.Implementations.Devices /// public DeviceInfo? GetDevice(string id) { - var device = _devices.Values.OrderByDescending(d => d.DateLastActivity).FirstOrDefault(d => d.DeviceId == id); + var device = _devices.Values.Where(d => d.DeviceId == id).OrderByDescending(d => d.DateLastActivity).FirstOrDefault(); _deviceOptions.TryGetValue(id, out var deviceOption); var deviceInfo = device is null ? null : ToDeviceInfo(device, deviceOption);