mirror of https://github.com/djcb/mu.git
store: stop indexer in dtor
This commit is contained in:
parent
9b5f780975
commit
0be54119d8
|
@ -101,8 +101,11 @@ struct Store::Private {
|
||||||
contacts_cache_{"", properties_.personal_addresses} {
|
contacts_cache_{"", properties_.personal_addresses} {
|
||||||
}
|
}
|
||||||
|
|
||||||
~Private()
|
~Private() try {
|
||||||
try {
|
|
||||||
|
if (indexer_) // do this here, since it may call back.
|
||||||
|
indexer_->stop();
|
||||||
|
|
||||||
g_debug("closing store @ %s", properties_.database_path.c_str());
|
g_debug("closing store @ %s", properties_.database_path.c_str());
|
||||||
if (!read_only_) {
|
if (!read_only_) {
|
||||||
transaction_maybe_commit(true /*force*/);
|
transaction_maybe_commit(true /*force*/);
|
||||||
|
|
Loading…
Reference in New Issue