aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Devices/DeviceManager.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-08-07 19:27:34 +0200
committerGitHub <noreply@github.com>2020-08-07 19:27:34 +0200
commit7e49358ba9c1fcf12f9e7b30601a9df568a65242 (patch)
tree3c87765f60892e2d0f45a888a101cfec2e68a0d1 /Emby.Server.Implementations/Devices/DeviceManager.cs
parentc82b26a4b1c0a33dc811e228e97dcb7f9c86e2c1 (diff)
parentbea519de5b78f03f44fe04a4231a63838a010594 (diff)
Merge pull request #3840 from barronpm/fix-memorycache
Fix MemoryCache Usage.
Diffstat (limited to 'Emby.Server.Implementations/Devices/DeviceManager.cs')
-rw-r--r--Emby.Server.Implementations/Devices/DeviceManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Devices/DeviceManager.cs b/Emby.Server.Implementations/Devices/DeviceManager.cs
index 2921a7f0e..cc4b407f5 100644
--- a/Emby.Server.Implementations/Devices/DeviceManager.cs
+++ b/Emby.Server.Implementations/Devices/DeviceManager.cs
@@ -53,7 +53,7 @@ namespace Emby.Server.Implementations.Devices
lock (_capabilitiesSyncLock)
{
- _memoryCache.CreateEntry(deviceId).SetValue(capabilities);
+ _memoryCache.Set(deviceId, capabilities);
_json.SerializeToFile(capabilities, path);
}
}