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

Commit 150fec44 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Eliminate a race condition that could lead to calling...

Merge "Eliminate a race condition that could lead to calling PBT#finalizeBackup() twice" into oc-dr1-dev
parents 037503df 015df962
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -2822,11 +2822,11 @@ public class BackupManagerService implements BackupManagerServiceInterface {
                        break;
                    case FINAL:
                        if (!mFinished) finalizeBackup();
                        else {
                            Slog.e(TAG, "Duplicate finish");
                        if (!mFinished) {
                            finalizeBackup();
                        } else {
                            Slog.e(TAG, "Duplicate finish of K/V pass");
                        }
                        mFinished = true;
                        break;
                }
            }
@@ -3180,6 +3180,7 @@ public class BackupManagerService implements BackupManagerServiceInterface {
                        break;
                }
            }
            mFinished = true;
            Slog.i(BackupManagerService.TAG, "K/V backup pass finished.");
            // Only once we're entirely finished do we release the wakelock for k/v backup.
            mWakelock.release();