summaryrefslogtreecommitdiff
path: root/src/utils/reload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/reload.cpp')
-rw-r--r--src/utils/reload.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/reload.cpp b/src/utils/reload.cpp
index fdca9bc..807a9ab 100644
--- a/src/utils/reload.cpp
+++ b/src/utils/reload.cpp
@@ -11,6 +11,7 @@ void open_database()
#ifdef USE_DATABASE
const auto db_filename = Config::get("db_name", xdg_data_path("biboumi.sqlite"));
log_info("Opening database: ", db_filename);
+ Database::close();
Database::open(db_filename);
log_info("database successfully opened.");
#endif