Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e80820a authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Maybe fix issue #2568615: System server crashed in SyncStorageEngine

Ack, we were acquiring the wrong lock at some points when
accessing the data structure!

Change-Id: I8bbc8e1ffa2e3e8a94bf7625e3d7f020c458eea2
parent 567b57b6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -330,11 +330,11 @@ public class SyncStorageEngine extends Handler {

    @Override public void handleMessage(Message msg) {
        if (msg.what == MSG_WRITE_STATUS) {
            synchronized (mAccounts) {
            synchronized (mAuthorities) {
                writeStatusLocked();
            }
        } else if (msg.what == MSG_WRITE_STATISTICS) {
            synchronized (mAccounts) {
            synchronized (mAuthorities) {
                writeStatisticsLocked();
            }
        }