Fix race condition in SyncManager (#2137804)

Change-Id: I1165084a5868f340adb51d0d953092fac68d1f64
This commit is contained in:
Marc Blank 2009-09-27 10:59:38 -07:00
parent c41c47fa07
commit 8aed46b4d8

View File

@ -519,6 +519,7 @@ public class SyncManager extends Service implements Runnable {
private void collectEasAccounts(Cursor c, ArrayList<Account> accounts) {
Context context = getContext();
if (context == null) return;
while (c.moveToNext()) {
long hostAuthId = c.getLong(Account.CONTENT_HOST_AUTH_KEY_RECV_COLUMN);
if (hostAuthId > 0) {