From d68cdc0c6d56bf6f3e7c595acfa5d7c2454ac616 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 3 Mar 2017 01:38:05 -0500 Subject: [PATCH] 3.2.5.5 --- .../LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs | 16 +++++++++++----- SharedVersion.cs | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs index c07b6be82..7397380e1 100644 --- a/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs +++ b/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs @@ -142,9 +142,12 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun { var response = JsonSerializer.DeserializeFromStream(stream); - lock (_modelCache) + if (!string.IsNullOrWhiteSpace(info.Id)) { - _modelCache[info.Id] = response; + lock (_modelCache) + { + _modelCache[info.Id] = response; + } } return response; @@ -159,10 +162,13 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun { ModelNumber = defaultValue }; - // HDHR4 doesn't have this api - lock (_modelCache) + if (!string.IsNullOrWhiteSpace(info.Id)) { - _modelCache[info.Id] = response; + // HDHR4 doesn't have this api + lock (_modelCache) + { + _modelCache[info.Id] = response; + } } return response; } diff --git a/SharedVersion.cs b/SharedVersion.cs index a3b0bf79a..5628aba38 100644 --- a/SharedVersion.cs +++ b/SharedVersion.cs @@ -1,3 +1,3 @@ using System.Reflection; -[assembly: AssemblyVersion("3.2.5.4")] +[assembly: AssemblyVersion("3.2.5.5")]