Explicitely close the Database before re-opening it

This commit is contained in:
louiz’
2017-06-14 00:19:15 +02:00
parent 9defd0ccb7
commit 8d1d822edf
+1
View File
@@ -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