From 745f1ea814439a973d2e294de3cff1f88471cba2 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Wed, 21 Mar 2012 12:51:47 -0700 Subject: [PATCH] Synchronize the GtasksTokenValidator --- .../com/todoroo/astrid/gtasks/auth/GtasksTokenValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/gtasks/auth/GtasksTokenValidator.java b/astrid/plugin-src/com/todoroo/astrid/gtasks/auth/GtasksTokenValidator.java index 462c4352e..958509fae 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gtasks/auth/GtasksTokenValidator.java +++ b/astrid/plugin-src/com/todoroo/astrid/gtasks/auth/GtasksTokenValidator.java @@ -27,7 +27,7 @@ public class GtasksTokenValidator { * @param token * @return valid token on success, null on failure */ - public static String validateAuthToken(Context c, String token) throws GoogleTasksException { + public static synchronized String validateAuthToken(Context c, String token) throws GoogleTasksException { GoogleAccountManager accountManager = new GoogleAccountManager(ContextManager.getContext()); if(testToken(token))