diff --git a/src/NzbDrone.Common/Processes/ProcessProvider.cs b/src/NzbDrone.Common/Processes/ProcessProvider.cs index cdb47174b..e36c86691 100644 --- a/src/NzbDrone.Common/Processes/ProcessProvider.cs +++ b/src/NzbDrone.Common/Processes/ProcessProvider.cs @@ -189,7 +189,11 @@ namespace NzbDrone.Common.Processes public void WaitForExit(Process process) { Logger.Trace("Waiting for process {0} to exit.", process.ProcessName); - process.WaitForExit(); + + if (!process.HasExited) + { + process.WaitForExit(); + } } public void SetPriority(int processId, ProcessPriorityClass priority) diff --git a/src/NzbDrone.Core/Datastore/Migration/040_add_metadata_tables.cs b/src/NzbDrone.Core/Datastore/Migration/039_add_metadata_tables.cs similarity index 100% rename from src/NzbDrone.Core/Datastore/Migration/040_add_metadata_tables.cs rename to src/NzbDrone.Core/Datastore/Migration/039_add_metadata_tables.cs diff --git a/src/NzbDrone.Core/Datastore/Migration/039_add_metadata_to_episodes_and_series.cs b/src/NzbDrone.Core/Datastore/Migration/040_add_metadata_to_episodes_and_series.cs similarity index 100% rename from src/NzbDrone.Core/Datastore/Migration/039_add_metadata_to_episodes_and_series.cs rename to src/NzbDrone.Core/Datastore/Migration/040_add_metadata_to_episodes_and_series.cs diff --git a/src/NzbDrone.Core/NzbDrone.Core.csproj b/src/NzbDrone.Core/NzbDrone.Core.csproj index 884390fd7..92c3429c2 100644 --- a/src/NzbDrone.Core/NzbDrone.Core.csproj +++ b/src/NzbDrone.Core/NzbDrone.Core.csproj @@ -195,8 +195,8 @@ - - + +