Fix ConcurrentModificationException
Bug: 6937046 Change-Id: I82e578d9b31b0064570deee9a9625ddf07826112
This commit is contained in:
parent
e340b1f4df
commit
e444155bce
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue