From db0cde33ff3790ee889b9891f02080e65f447cf0 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Mon, 20 Feb 2012 18:16:05 -0800 Subject: [PATCH] Synchronize the gtasks update lists method to prevent conflicts when multiple syncs ongoing --- .../plugin-src/com/todoroo/astrid/gtasks/GtasksListService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksListService.java b/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksListService.java index 8bd2100a4..18958c2f9 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksListService.java +++ b/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksListService.java @@ -77,7 +77,7 @@ public class GtasksListService { } @SuppressWarnings("nls") - public void updateLists(TaskLists remoteLists) { + public synchronized void updateLists(TaskLists remoteLists) { readLists(); for(StoreObject list : lists)