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

Commit 3065963f authored by Felipe Leme's avatar Felipe Leme
Browse files

Wrapped call to notifyAll() in a synchronized block

Change-Id: I452caa56bef4541b53917bdd6f22034161255dd1
Bug: 7118468
parent 9ca26e43
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1188,9 +1188,11 @@ public class Am {
            if (data != null) line = line + ", data=\"" + data + "\"";
            if (extras != null) line = line + ", extras: " + extras;
            System.out.println(line);
            synchronized (this) {
              mFinished = true;
              notifyAll();
            }
        }

        public synchronized void waitForFinish() {
            try {