mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-03 05:25:10 +00:00
Fixed an issue where the RssSyncTimer was not updating the NextInterval variable after expiring the first time.
This commit is contained in:
parent
0fc75e8907
commit
6690139616
1 changed files with 3 additions and 5 deletions
|
@ -17,10 +17,8 @@ public class TimerProvider : ITimerProvider
|
||||||
|
|
||||||
private Timer _rssSyncTimer;
|
private Timer _rssSyncTimer;
|
||||||
private Timer _minuteTimer;
|
private Timer _minuteTimer;
|
||||||
|
|
||||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
|
||||||
|
|
||||||
private DateTime _rssSyncNextInterval;
|
private DateTime _rssSyncNextInterval;
|
||||||
|
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||||
|
|
||||||
public TimerProvider(IRssSyncProvider rssSyncProvider, ISeriesProvider seriesProvider, ISeasonProvider seasonProvider, IEpisodeProvider episodeProvider)
|
public TimerProvider(IRssSyncProvider rssSyncProvider, ISeriesProvider seriesProvider, ISeasonProvider seasonProvider, IEpisodeProvider episodeProvider)
|
||||||
{
|
{
|
||||||
|
@ -90,8 +88,8 @@ public void StopMinuteTimer()
|
||||||
|
|
||||||
private void RunRssSync(object obj, ElapsedEventArgs args)
|
private void RunRssSync(object obj, ElapsedEventArgs args)
|
||||||
{
|
{
|
||||||
DateTime.Now.AddMilliseconds(_rssSyncTimer.Interval);
|
_rssSyncNextInterval = DateTime.Now.AddMilliseconds(_rssSyncTimer.Interval);
|
||||||
_rssSyncProvider.Begin();
|
//_rssSyncProvider.Begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void MinuteTimer_Elapsed(object obj, ElapsedEventArgs args)
|
private void MinuteTimer_Elapsed(object obj, ElapsedEventArgs args)
|
||||||
|
|
Loading…
Reference in a new issue