diff --git a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs index 69d33e7e6..2e1a2d2ab 100644 --- a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs +++ b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs @@ -50,8 +50,6 @@ namespace NzbDrone.Core.Datastore.Migration.Framework { runner.MigrateUp(true); } - - processor.Dispose(); } catch (SQLiteException) { @@ -60,6 +58,8 @@ namespace NzbDrone.Core.Datastore.Migration.Framework throw; } + processor.Dispose(); + sw.Stop(); _announcer.ElapsedTime(sw.Elapsed);