Fix ConcurrentModificationException

Bug: 6937046
Change-Id: I82e578d9b31b0064570deee9a9625ddf07826112
This commit is contained in:
Paul Westbrook 2012-08-06 10:50:00 -07:00
parent e340b1f4df
commit e444155bce
1 changed files with 3 additions and 1 deletions

View File

@ -1931,7 +1931,9 @@ public abstract class SyncManager extends Service implements Runnable {
log("Dead thread, mailbox released: " +
c.getString(Mailbox.CONTENT_DISPLAY_NAME_COLUMN));
}
releaseMailbox(mailboxId);
synchronized (sSyncLock) {
releaseMailbox(mailboxId);
}
// Restart this if necessary
if (nextWait > 3*SECONDS) {
nextWait = 3*SECONDS;