Commit 8d1d822e authored by louiz’'s avatar louiz’
Browse files

Explicitely close the Database before re-opening it

parent 9defd0cc
...@@ -11,6 +11,7 @@ void open_database() ...@@ -11,6 +11,7 @@ void open_database()
#ifdef USE_DATABASE #ifdef USE_DATABASE
const auto db_filename = Config::get("db_name", xdg_data_path("biboumi.sqlite")); const auto db_filename = Config::get("db_name", xdg_data_path("biboumi.sqlite"));
log_info("Opening database: ", db_filename); log_info("Opening database: ", db_filename);
Database::close();
Database::open(db_filename); Database::open(db_filename);
log_info("database successfully opened."); log_info("database successfully opened.");
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment