aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jellyfin.Server.Implementations/Devices/DeviceManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
index ab3127669..b87245f0b 100644
--- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
+++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
@@ -130,13 +130,13 @@ namespace Jellyfin.Server.Implementations.Devices
devices = devices.Where(device => device.AccessToken == query.AccessToken);
}
+ var count = await devices.CountAsync().ConfigureAwait(false);
+
if (query.Skip.HasValue)
{
devices = devices.Skip(query.Skip.Value);
}
- var count = await devices.CountAsync().ConfigureAwait(false);
-
if (query.Limit.HasValue)
{
devices = devices.Take(query.Limit.Value);