From: Austin Ray Date: Fri, 22 Mar 2019 12:27:08 +0000 (-0400) Subject: notmuch: close thread queries' hcache on SigInt (#1606) X-Git-Tag: 2019-10-25~308 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23d1bfb2e51c9db929adceb7a1970962b263a81b;p=neomutt notmuch: close thread queries' hcache on SigInt (#1606) Ensure read_threads_query() behaves the same as read_mesgs_query() when receiving SigInt. --- diff --git a/notmuch/mutt_notmuch.c b/notmuch/mutt_notmuch.c index 7ee9552bc..2a972e302 100644 --- a/notmuch/mutt_notmuch.c +++ b/notmuch/mutt_notmuch.c @@ -1184,6 +1184,7 @@ static bool read_threads_query(struct Mailbox *m, notmuch_query_t *q, bool dedup { if (SigInt == 1) { + nm_hcache_close(h); SigInt = 0; return false; }