[geary/wip/replay-queue-wedging: 1/5] Fix replay queue not letting remote ops execute when closing
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/replay-queue-wedging: 1/5] Fix replay queue not letting remote ops execute when closing
- Date: Fri, 9 Aug 2019 23:00:28 +0000 (UTC)
commit 05c8236ea8d7190efcbafba4c8cce4722057d90d
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]