retry failed recordings

pull/702/head
Luke Pulverenti 9 years ago
parent 1ddee6724a
commit de8bf2b396

@ -482,12 +482,15 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
{
_logger.ErrorException("Error recording stream", ex);
if (DateTime.UtcNow < timer.EndDate)
{
const int retryIntervalSeconds = 60;
_logger.Debug("Retrying recording in {0} seconds.", retryIntervalSeconds);
_timerProvider.StartTimer(timer, TimeSpan.FromSeconds(retryIntervalSeconds));
}
}
}
private async Task RecordStream(TimerInfo timer, CancellationToken cancellationToken)
{

Loading…
Cancel
Save