aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-08-22 14:31:17 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-08-22 14:31:17 -0400
commitde8bf2b396be38fadf05c830c243d96691326e85 (patch)
treefcf0e1dace03d9cc0267bad6aebe1b9094b1d474
parent1ddee6724ae4afa098f0ef4539245b4f20c86756 (diff)
retry failed recordings
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs
index 5b82b0a1f..2f1b9d03e 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs
@@ -482,10 +482,13 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
{
_logger.ErrorException("Error recording stream", ex);
- const int retryIntervalSeconds = 60;
- _logger.Debug("Retrying recording in {0} seconds.", retryIntervalSeconds);
+ if (DateTime.UtcNow < timer.EndDate)
+ {
+ const int retryIntervalSeconds = 60;
+ _logger.Debug("Retrying recording in {0} seconds.", retryIntervalSeconds);
- _timerProvider.StartTimer(timer, TimeSpan.FromSeconds(retryIntervalSeconds));
+ _timerProvider.StartTimer(timer, TimeSpan.FromSeconds(retryIntervalSeconds));
+ }
}
}