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 65ba5da79..12e5b8ff4 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java @@ -183,7 +183,7 @@ public class ActFmSyncThread { @SuppressWarnings("nls") private void sync() { try { - int batchSize = 3; + int batchSize = 4; List> messageBatch = new LinkedList>(); while(true) { synchronized(monitor) { @@ -202,10 +202,11 @@ public class ActFmSyncThread { boolean refreshAfterBatch = false; if (timeForBackgroundSync()) { + repopulateQueueFromOutstandingTables(); + enqueueMessage(BriefMe.instantiateBriefMeForClass(TaskListMetadata.class, NameMaps.PUSHED_AT_TASK_LIST_METADATA), null); enqueueMessage(BriefMe.instantiateBriefMeForClass(Task.class, NameMaps.PUSHED_AT_TASKS), null); enqueueMessage(BriefMe.instantiateBriefMeForClass(TagData.class, NameMaps.PUSHED_AT_TAGS), null); enqueueMessage(BriefMe.instantiateBriefMeForClass(User.class, NameMaps.PUSHED_AT_USERS), null); - repopulateQueueFromOutstandingTables(); refreshAfterBatch = true; setTimeForBackgroundSync(false); }