aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/LiveTv
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2015-04-17 01:18:53 -0400
committerLuke <luke.pulverenti@gmail.com>2015-04-17 01:18:53 -0400
commitab0a7814d7466a6bd615033554f38af7fa21eac7 (patch)
tree364b3fa26377204c09667afb49127033c9992c2e /MediaBrowser.Server.Implementations/LiveTv
parentf6260db9f172398ebf1b25ade8e5e8613d3e43af (diff)
parent88766a9310f2f074d1a3e15fb542a0a46db87693 (diff)
Merge pull request #1083 from MediaBrowser/dev
3.0.5582.3
Diffstat (limited to 'MediaBrowser.Server.Implementations/LiveTv')
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
index 5791da1ea2..51f23984a8 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
@@ -1002,8 +1002,16 @@ namespace MediaBrowser.Server.Implementations.LiveTv
List<TimerInfo> timerList;
if (!timers.TryGetValue(program.ServiceName, out timerList))
{
- var tempTimers = await GetService(program.ServiceName).GetTimersAsync(cancellationToken).ConfigureAwait(false);
- timers[program.ServiceName] = timerList = tempTimers.ToList();
+ try
+ {
+ var tempTimers = await GetService(program.ServiceName).GetTimersAsync(cancellationToken).ConfigureAwait(false);
+ timers[program.ServiceName] = timerList = tempTimers.ToList();
+ }
+ catch (Exception ex)
+ {
+ _logger.ErrorException("Error getting timer infos", ex);
+ timers[program.ServiceName] = timerList = new List<TimerInfo>();
+ }
}
var timer = timerList.FirstOrDefault(i => string.Equals(i.ProgramId, program.ExternalId, StringComparison.OrdinalIgnoreCase));