From f40178fe8ab47acd7c0b5142a8875c0c5aad4fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Mon, 6 Jul 2020 20:49:04 +0100 Subject: [PATCH] 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. --- lib/index/mu-indexer.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/index/mu-indexer.cc b/lib/index/mu-indexer.cc index 79998dbd..f9ac032a 100644 --- a/lib/index/mu-indexer.cc +++ b/lib/index/mu-indexer.cc @@ -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();