store: reset indexer in dtor

Clear it up as soon as possible.
This commit is contained in:
Dirk-Jan C. Binnema 2022-05-18 18:24:30 +03:00
parent 0be54119d8
commit c3778cd467
1 changed files with 1 additions and 2 deletions

View File

@ -103,8 +103,7 @@ struct Store::Private {
~Private() try {
if (indexer_) // do this here, since it may call back.
indexer_->stop();
indexer_.reset(); // reset so it cannot call us back
g_debug("closing store @ %s", properties_.database_path.c_str());
if (!read_only_) {