1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-05 15:47:20 +02:00

Fixed: Don't trigger SceneMapping update and Housekeeping right on the startup event.

This commit is contained in:
Taloth Saldono 2016-03-01 23:50:09 +01:00
parent 55e870f295
commit e5de7fb8cf
3 changed files with 2 additions and 14 deletions

View File

@ -124,7 +124,7 @@ public void should_not_refresh_cache_if_cache_is_not_empty_when_looking_for_tvdb
.Returns(Builder<SceneMapping>.CreateListOfSize(1).Build());
Subject.HandleAsync(new ApplicationStartedEvent());
Subject.Execute(new UpdateSceneMappingCommand());
Mocker.GetMock<ISceneMappingRepository>()
.Verify(v => v.All(), Times.Once());

View File

@ -21,7 +21,6 @@ public interface ISceneMappingService
}
public class SceneMappingService : ISceneMappingService,
IHandleAsync<ApplicationStartedEvent>,
IHandle<SeriesRefreshStartingEvent>,
IExecute<UpdateSceneMappingCommand>
{
@ -204,11 +203,6 @@ private List<string> FilterNonEnglish(List<string> titles)
return titles.Where(title => title.All(c => c <= 255)).ToList();
}
public void HandleAsync(ApplicationStartedEvent message)
{
UpdateMappings();
}
public void Handle(SeriesRefreshStartingEvent message)
{
UpdateMappings();

View File

@ -8,8 +8,7 @@
namespace NzbDrone.Core.Housekeeping
{
public class HousekeepingService : IExecute<HousekeepingCommand>,
IHandleAsync<ApplicationStartedEvent>
public class HousekeepingService : IExecute<HousekeepingCommand>
{
private readonly IEnumerable<IHousekeepingTask> _housekeepers;
private readonly Logger _logger;
@ -50,10 +49,5 @@ public void Execute(HousekeepingCommand message)
{
Clean();
}
public void HandleAsync(ApplicationStartedEvent message)
{
Clean();
}
}
}