diff options
author | Lars Kotthoff <larsko@uwyo.edu> | 2018-11-27 18:56:12 -0700 |
---|---|---|
committer | Gaute Hope <eg@gaute.vetsj.com> | 2018-12-01 08:35:05 +0000 |
commit | d337cff88134652beddd20bc757accba9a721e6e (patch) | |
tree | 354404d22490e0664bebaf57521c47358ce9d31e | |
parent | 0a2807182cd3bccbc14c7250de2f0e8e7f814248 (diff) |
more misc improvements
-rw-r--r-- | src/modes/thread_index/query_loader.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modes/thread_index/query_loader.cc b/src/modes/thread_index/query_loader.cc index fae2e1d..40f384b 100644 --- a/src/modes/thread_index/query_loader.cc +++ b/src/modes/thread_index/query_loader.cc @@ -179,6 +179,8 @@ namespace Astroid { notmuch_threads_destroy (threads); notmuch_query_destroy (nmquery); + run = false; // on_thread_changed will not check lock + if (!in_destructor) stats_ready.emit (); // update loading status @@ -186,8 +188,6 @@ namespace Astroid { if (!in_destructor) queue_has_data.emit (); - run = false; // on_thread_changed will not check lock - if (!in_destructor) deferred_threads_d.emit (); @@ -220,7 +220,6 @@ namespace Astroid { LOG (debug) << "ql: loaded " << loaded_threads << " threads."; if (!in_destructor && !list_view->filter_txt.empty()) stats_ready.emit (); } - db.close (); } } |