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

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

Merge "Do not commit session twice"

parents 81474a3d d9d343cf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -930,6 +930,10 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
    @GuardedBy("mLock")
    private void commitLocked()
            throws PackageManagerException {
        if (mRelinquished) {
            Slog.d(TAG, "Ignoring commit after previous commit relinquished control");
            return;
        }
        if (mDestroyed) {
            throw new PackageManagerException(INSTALL_FAILED_INTERNAL_ERROR, "Session destroyed");
        }