diff options
author | Felipe Leme <felipeal@google.com> | 2012-09-06 11:41:20 -0700 |
---|---|---|
committer | Felipe Leme <felipeal@google.com> | 2012-09-06 11:43:03 -0700 |
commit | 3065963f817f9a0f032ec7992c4154cfdeed443d (patch) | |
tree | 851cf3cad6d5cc7b3a8ecfbb46211ab92a19ad5e /cmds/am | |
parent | 9ca26e43652b516f6d38dc92120d802b5e8bfde4 (diff) | |
download | frameworks_base-3065963f817f9a0f032ec7992c4154cfdeed443d.zip frameworks_base-3065963f817f9a0f032ec7992c4154cfdeed443d.tar.gz frameworks_base-3065963f817f9a0f032ec7992c4154cfdeed443d.tar.bz2 |
Wrapped call to notifyAll() in a synchronized block
Change-Id: I452caa56bef4541b53917bdd6f22034161255dd1
Bug: 7118468
Diffstat (limited to 'cmds/am')
-rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index bcd4588..c8f4452 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -1188,8 +1188,10 @@ public class Am { if (data != null) line = line + ", data=\"" + data + "\""; if (extras != null) line = line + ", extras: " + extras; System.out.println(line); - mFinished = true; - notifyAll(); + synchronized (this) { + mFinished = true; + notifyAll(); + } } public synchronized void waitForFinish() { |