summaryrefslogtreecommitdiff
path: root/src/modules/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/database')
-rw-r--r--src/modules/database/database.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp
index b52d8cd9b0..cd6e8f8460 100644
--- a/src/modules/database/database.cpp
+++ b/src/modules/database/database.cpp
@@ -491,8 +491,6 @@ int LoadDatabaseModule(void)
if (!getProfile(szProfile, SIZEOF(szProfile)))
return 1;
- EnsureCheckerLoaded(false); // unload dbchecker
-
if (arDbPlugins.getCount() == 0) {
TCHAR buf[256];
TCHAR *p = _tcsrchr(szProfile, '\\');
@@ -529,6 +527,8 @@ int LoadDatabaseModule(void)
}
while (retry);
+ EnsureCheckerLoaded(false); // unload dbchecker
+
if (rc == ERROR_SUCCESS) {
InitIni();
return 0;