From 5822505189baea97346eb87c9afd5a4b932bcedc Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Wed, 21 Dec 2016 08:18:08 +0000 Subject: [PATCH] Fixed db issue --- Ombi.Store/DbConfiguration.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Ombi.Store/DbConfiguration.cs b/Ombi.Store/DbConfiguration.cs index bc519431b..9758509a8 100644 --- a/Ombi.Store/DbConfiguration.cs +++ b/Ombi.Store/DbConfiguration.cs @@ -51,15 +51,19 @@ namespace Ombi.Store { get { + + if (!string.IsNullOrEmpty(_currentPath)) + { + return _currentPath; + } + if (File.Exists(OldPath)) { _currentPath = OldPath; + return _currentPath; } - if (File.Exists(NewCurrentPath)) - { - _currentPath = NewCurrentPath; - } + _currentPath = NewCurrentPath; return _currentPath; }