Merge "Maybe fix issue #2568615: System server crashed in SyncStorageEngine" into froyo

This commit is contained in:
Dianne Hackborn
2010-04-07 11:49:37 -07:00
committed by Android (Google) Code Review

View File

@@ -330,11 +330,11 @@ public class SyncStorageEngine extends Handler {
@Override public void handleMessage(Message msg) { @Override public void handleMessage(Message msg) {
if (msg.what == MSG_WRITE_STATUS) { if (msg.what == MSG_WRITE_STATUS) {
synchronized (mAccounts) { synchronized (mAuthorities) {
writeStatusLocked(); writeStatusLocked();
} }
} else if (msg.what == MSG_WRITE_STATISTICS) { } else if (msg.what == MSG_WRITE_STATISTICS) {
synchronized (mAccounts) { synchronized (mAuthorities) {
writeStatisticsLocked(); writeStatisticsLocked();
} }
} }