[geary/wip/remote-retry] Need to reset remote_semaphore when an initial open of Folder occurs
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/remote-retry] Need to reset remote_semaphore when an initial open of Folder occurs
- Date: Thu, 22 Jan 2015 22:23:25 +0000 (UTC)
commit 27a14c65f6db896ef4c31d81316a5941370baa07
Author: Jim Nelson <jim yorba org>
Date: Thu Jan 22 14:23:04 2015 -0800
Need to reset remote_semaphore when an initial open of Folder occurs
.../imap-engine/imap-engine-minimal-folder.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/engine/imap-engine/imap-engine-minimal-folder.vala
b/src/engine/imap-engine/imap-engine-minimal-folder.vala
index 5a7b9e3..16a8fb2 100644
--- a/src/engine/imap-engine/imap-engine-minimal-folder.vala
+++ b/src/engine/imap-engine/imap-engine-minimal-folder.vala
@@ -521,6 +521,9 @@ private class Geary.ImapEngine.MinimalFolder : Geary.Folder, Geary.FolderSupport
// first open gets to name the flags, but see note above
this.open_flags = open_flags;
+ // reset to force waiting in wait_for_open_async()
+ remote_semaphore.reset();
+
// Unless NO_DELAY is set, do NOT open the remote side here; wait for the ReplayQueue to
// require a remote connection or wait_for_open_async() to be called ... this allows for
// fast local-only operations to occur, local-only either because (a) the folder has all
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]