lib/index: fix deadlock when mu4e-index-cleanup is nil (#1749)

If the user has wants to postpone clean-up we shouldn't lock the
indexer waiting for something that will never happen. Clear the flag
event though we are actually skipping cleanup.
This commit is contained in:
Alex Bennée 2020-07-06 20:49:04 +01:00
parent 5040d52b46
commit f40178fe8a
1 changed files with 3 additions and 0 deletions

View File

@ -270,6 +270,9 @@ Indexer::Private::start(const Indexer::Config& conf)
cleanup();
clean_done_ = true;
g_debug ("cleanup finished");
} else {
clean_done_ = true;
g_debug ("cleanup skipped");
}
store_.commit();