Commit ea1d0fd3 authored by PedroRod's avatar PedroRod

assigned nullptr to _database and _query_stmt upon flushing so that if flush…

assigned nullptr to _database and _query_stmt upon flushing so that if flush gets called again, will not throw an exception
parent 26ab30ab
......@@ -32,6 +32,9 @@ namespace spdlog
sqlite3_close(_database);
sqlite3_finalize(_query_stmt);
_database = nullptr;
_query_stmt = nullptr;
}
void bind_to_statement(const details::log_msg& msg) const
......
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