Skip to content

Commit 3065963

Browse files
committed
Wrapped call to notifyAll() in a synchronized block
Change-Id: I452caa56bef4541b53917bdd6f22034161255dd1 Bug: 7118468
1 parent 9ca26e4 commit 3065963

File tree

1 file changed

+4
-2
lines changed
  • cmds/am/src/com/android/commands/am

1 file changed

+4
-2
lines changed

cmds/am/src/com/android/commands/am/Am.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,8 +1188,10 @@ public void performReceive(Intent intent, int resultCode, String data, Bundle ex
11881188
if (data != null) line = line + ", data=\"" + data + "\"";
11891189
if (extras != null) line = line + ", extras: " + extras;
11901190
System.out.println(line);
1191-
mFinished = true;
1192-
notifyAll();
1191+
synchronized (this) {
1192+
mFinished = true;
1193+
notifyAll();
1194+
}
11931195
}
11941196

11951197
public synchronized void waitForFinish() {

0 commit comments

Comments
 (0)