mirror of https://github.com/djcb/mu.git
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:
parent
5040d52b46
commit
f40178fe8a
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue