mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
retry failed recordings
This commit is contained in:
parent
1ddee6724a
commit
de8bf2b396
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user