From 8bf80ecda0752fcc482e9ff9dfa210a7151e4de2 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 23 Apr 2011 12:47:05 -0700 Subject: [PATCH] Updated ForceMigration() --- NzbDrone.Core/CentralDispatch.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/NzbDrone.Core/CentralDispatch.cs b/NzbDrone.Core/CentralDispatch.cs index cacd861ae..65070a9a9 100644 --- a/NzbDrone.Core/CentralDispatch.cs +++ b/NzbDrone.Core/CentralDispatch.cs @@ -131,7 +131,7 @@ namespace NzbDrone.Core _kernel.Bind().To().InTransientScope(); _kernel.Bind().To().InTransientScope(); _kernel.Bind().To().InTransientScope(); - + _kernel.Get().Initialize(); _kernel.Get().StartTimer(30); } @@ -139,11 +139,12 @@ namespace NzbDrone.Core private static void ForceMigration(IRepository repository) { - repository.GetPaged(0, 1); - repository.GetPaged(0, 1); - repository.GetPaged(0, 1); - repository.GetPaged(0, 1); - repository.GetPaged(0, 1); + repository.All().Count(); + repository.All().Count(); + repository.All().Count(); + repository.All().Count(); + repository.All().Count(); + repository.All().Count(); } ///