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

Commit d9d343cf authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Do not commit session twice

Change-Id: Icee9011cb3bba6d536a86452d1dbca1c5c2313e6
Fixes: 110847215
Test: atest GtsPackageInstallTestCases
parent 6ffe655a
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");
        }