[geary/wip/131-sent-mail: 2/14] Fix replay queue not letting remote ops execute when closing



commit 2990171e94a7f21c8350cbf21ff36a99d9124ff4
Author: Michael Gratton <mike vee net>
Date:   Thu Aug 8 00:16:59 2019 +1000

    Fix replay queue not letting remote ops execute when closing
    
    If remote ops cannot obtain a remote session when the queue is closing
    (but not yet fully closed), they can't every be successfully flushed.

 src/engine/imap-engine/imap-engine-replay-queue.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/engine/imap-engine/imap-engine-replay-queue.vala 
b/src/engine/imap-engine/imap-engine-replay-queue.vala
index b95ebc32..9c6f3fef 100644
--- a/src/engine/imap-engine/imap-engine-replay-queue.vala
+++ b/src/engine/imap-engine/imap-engine-replay-queue.vala
@@ -500,7 +500,7 @@ private class Geary.ImapEngine.ReplayQueue : Geary.BaseObject {
             // wait until the remote folder is opened (or throws an exception, in which case closed)
             Imap.FolderSession? remote = null;
             try {
-                if (!is_close_op && folder_opened && state == State.OPEN) {
+                if (!is_close_op && folder_opened && state != State.CLOSED) {
                     remote = yield owner.claim_remote_session(
                         this.remote_wait_cancellable
                     );


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