[geary/geary-0.11] Fix critical warning closing engine when search table update is running.



commit 208ca697311f49da6c5557e26e49b0abc37d0d6e
Author: Michael James Gratton <mike vee net>
Date:   Tue Aug 2 22:41:52 2016 +1000

    Fix critical warning closing engine when search table update is running.
    
    * src/engine/imap-db/imap-db-account.vala
      (Account::populate_search_table_batch_async): Ensure the DB is open
      before proceeding with the query.

 src/engine/imap-db/imap-db-account.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/imap-db/imap-db-account.vala b/src/engine/imap-db/imap-db-account.vala
index 93b35b5..253f561 100644
--- a/src/engine/imap-db/imap-db-account.vala
+++ b/src/engine/imap-db/imap-db-account.vala
@@ -1584,8 +1584,8 @@ private class Geary.ImapDB.Account : BaseObject {
     
     private async bool populate_search_table_batch_async(int limit, Cancellable? cancellable)
         throws Error {
-        debug("%s: Searching for up to %d missing indexed messages...", account_information.email,
-            limit);
+        check_open();
+        debug("%s: Searching for up to %d missing indexed messages...", account_information.email, limit);
         
         int count = 0, total_unindexed = 0;
         yield db.exec_transaction_async(Db.TransactionType.RW, (cx, cancellable) => {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]