aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2021-04-10 17:11:59 -0400
committerPatrick Barron <barronpm@gmail.com>2021-04-10 17:11:59 -0400
commited0b5ff0171e340544702d99a07c149e01c5bf8a (patch)
tree47fd042c5694218a254a5f71b130fa95c05fad02 /Jellyfin.Server.Implementations/Devices/DeviceManager.cs
parent3ebc0474343eb07defb6dd6f0e8bed707471e0a0 (diff)
Fix builds
Diffstat (limited to 'Jellyfin.Server.Implementations/Devices/DeviceManager.cs')
-rw-r--r--Jellyfin.Server.Implementations/Devices/DeviceManager.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
index 0d93ee2bf..4758f24f3 100644
--- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
+++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
@@ -15,6 +15,9 @@ using Microsoft.EntityFrameworkCore;
namespace Jellyfin.Server.Implementations.Devices
{
+ /// <summary>
+ /// Manages the creation, updating, and retrieval of devices.
+ /// </summary>
public class DeviceManager : IDeviceManager
{
private readonly JellyfinDbProvider _dbProvider;
@@ -63,9 +66,9 @@ namespace Jellyfin.Server.Implementations.Devices
}
/// <inheritdoc />
- public ClientCapabilities GetCapabilities(string id)
+ public ClientCapabilities GetCapabilities(string deviceId)
{
- return _capabilitiesMap.TryGetValue(id, out ClientCapabilities? result)
+ return _capabilitiesMap.TryGetValue(deviceId, out ClientCapabilities? result)
? result
: new ClientCapabilities();
}
@@ -112,7 +115,7 @@ namespace Jellyfin.Server.Implementations.Devices
sessions = sessions.Where(i => CanAccessDevice(user, i.DeviceId));
}
- var array = await sessions.Select(ToDeviceInfo).ToArrayAsync();
+ var array = await sessions.Select(ToDeviceInfo).ToArrayAsync().ConfigureAwait(false);
return new QueryResult<DeviceInfo>(array);
}