From ca6ff0d067d8d19c5ff9d3a3d5a16a73d5957f39 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 24 Aug 2019 15:08:09 -0400 Subject: [PATCH] Fixed: Move migration dispose after try --- .../Datastore/Migration/Framework/MigrationController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);