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

Commit 75072f6f authored by Christopher Tate's avatar Christopher Tate Committed by android-build-merger
Browse files

Merge \"Don\'t allow restore sessions during backups\" into nyc-dev

am: 9faaf541

Change-Id: I786bc8d21571fbe456d80b38789fd5e141b3182a
parents e2b32488 9faaf541
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -9849,7 +9849,11 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF

        synchronized(this) {
            if (mActiveRestoreSession != null) {
                Slog.d(TAG, "Restore session requested but one already active");
                Slog.i(TAG, "Restore session requested but one already active");
                return null;
            }
            if (mBackupRunning) {
                Slog.i(TAG, "Restore session requested but currently running backups");
                return null;
            }
            mActiveRestoreSession = new ActiveRestoreSession(packageName, transport);