~singpolyma/biboumi

8d1d822edf72e2bf426a1512fb2e19ef65e97b8c — louiz’ 5 years ago 9defd0c
Explicitely close the Database before re-opening it
1 files changed, 1 insertions(+), 0 deletions(-)

M src/utils/reload.cpp
M src/utils/reload.cpp => src/utils/reload.cpp +1 -0
@@ 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