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

Commit 96bdd7ad authored by Brint E. Kriebel's avatar Brint E. Kriebel
Browse files

Revert "PackageManager: Fix reconnection logic in Installer."

This reverts commit 7d57b5a1.

Change-Id: I491f043c16b4b40e1e937900dcaed34f7a079d75
parent 99323428
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -189,6 +189,11 @@ public final class Installer {


    private String transaction(String cmd) {
        if (!connect()) {
            Slog.e(TAG, "connection failed");
            return "-1";
        }

        int transactionId;
        synchronized (mTransactionIdLock) {
            transactionId = mLastTransactionId++;
@@ -203,11 +208,6 @@ public final class Installer {
                while(mResponses.get(transactionId) == null) {
                    synchronized (mPendingRequests) {
                        if (!mPendingRequests.contains(transactionId)) {
                            if (!connect()) {
                                Slog.e(TAG, "connection failed");
                                return "-1";
                            }

                            if (!writeCommand(cmd, transactionId)) {
                                /*
                                 * If installd died and restarted in the background (unlikely but