[geary/wip/cx-reestablish] Only retry if not cancelled
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/cx-reestablish] Only retry if not cancelled
- Date: Thu, 22 Jan 2015 22:06:07 +0000 (UTC)
commit 471a3d5f0d663a7316ef621aa87fc95daaf436cc
Author: Jim Nelson <jim yorba org>
Date: Thu Jan 22 14:05:51 2015 -0800
Only retry if not cancelled
.../imap-engine-account-synchronizer.vala | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/engine/imap-engine/imap-engine-account-synchronizer.vala
b/src/engine/imap-engine/imap-engine-account-synchronizer.vala
index 8e1c2bd..de64620 100644
--- a/src/engine/imap-engine/imap-engine-account-synchronizer.vala
+++ b/src/engine/imap-engine/imap-engine-account-synchronizer.vala
@@ -345,13 +345,14 @@ private class Geary.ImapEngine.AccountSynchronizer : Geary.BaseObject {
try {
yield sync_folder_async(folder, epoch, oldest_local, oldest_local_id);
} catch (Error err) {
- if (err is IOError.CANCELLED)
+ if (err is IOError.CANCELLED) {
not_cancelled = false;
-
- debug("Error background syncing folder %s: %s", folder.to_string(), err.message);
-
- // retry later
- delayed_send_all(iterate<Folder>(folder).to_array_list(), false, RETRY_SYNC_DELAY_SEC);
+ } else {
+ debug("Error background syncing folder %s: %s", folder.to_string(), err.message);
+
+ // retry later
+ delayed_send_all(iterate<Folder>(folder).to_array_list(), false, RETRY_SYNC_DELAY_SEC);
+ }
// fallthrough and close
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]