Fixed an issue where the RssSyncTimer was not updating the NextInterval variable after expiring the first time.

pull/2/head
markus101 14 years ago
parent 0fc75e8907
commit 6690139616

@ -17,10 +17,8 @@ namespace NzbDrone.Core.Providers
private Timer _rssSyncTimer;
private Timer _minuteTimer;
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
private DateTime _rssSyncNextInterval;
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
public TimerProvider(IRssSyncProvider rssSyncProvider, ISeriesProvider seriesProvider, ISeasonProvider seasonProvider, IEpisodeProvider episodeProvider)
{
@ -90,8 +88,8 @@ namespace NzbDrone.Core.Providers
private void RunRssSync(object obj, ElapsedEventArgs args)
{
DateTime.Now.AddMilliseconds(_rssSyncTimer.Interval);
_rssSyncProvider.Begin();
_rssSyncNextInterval = DateTime.Now.AddMilliseconds(_rssSyncTimer.Interval);
//_rssSyncProvider.Begin();
}
private void MinuteTimer_Elapsed(object obj, ElapsedEventArgs args)

Loading…
Cancel
Save