mirror of https://github.com/djcb/mu.git
store: reset indexer in dtor
Clear it up as soon as possible.
This commit is contained in:
parent
0be54119d8
commit
c3778cd467
|
@ -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_) {
|
||||
|
|
Loading…
Reference in New Issue