From 6b0b387d6ed0b82bb026a4aa1ee37473bdd92e8b Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Wed, 20 Mar 2013 18:02:42 -0700 Subject: [PATCH] Clear last error on sync success --- .../com/todoroo/astrid/actfm/sync/ActFmSyncThread.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java index 676358aa8..60cb5a83d 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java @@ -374,8 +374,10 @@ public class ActFmSyncThread { batchSize = Math.min(batchSize, messageBatch.size()) * 2; - if (recordSyncSuccess) + if (recordSyncSuccess) { + actFmPreferenceService.setLastError(null, null); actFmPreferenceService.recordSuccessfulSync(); + } } catch (IOException e) { Log.e(ERROR_TAG, "IOException", e); batchSize = Math.max(batchSize / 2, 1);