]> granicus.if.org Git - neomutt/commitdiff
notmuch: close thread queries' hcache on SigInt (#1606)
authorAustin Ray <austin@austinray.io>
Fri, 22 Mar 2019 12:27:08 +0000 (08:27 -0400)
committerPietro Cerutti <gahr@gahr.ch>
Fri, 22 Mar 2019 12:27:08 +0000 (12:27 +0000)
Ensure read_threads_query() behaves the same as read_mesgs_query() when
receiving SigInt.

notmuch/mutt_notmuch.c

index 7ee9552bc9af8a59cc5ab40bf1591f4bad615e5c..2a972e302cfca5de4bc2775a9fd599a5144fcff0 100644 (file)
@@ -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;
     }