diff options
author | Jeff Sharkey <jsharkey@android.com> | 2014-09-15 14:50:41 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2014-09-15 14:50:41 -0700 |
commit | 5ab6e0bac2de1688f2f4bb0de2c9964a9b15a4e6 (patch) | |
tree | 15a737bd1087c0d69f53cf1927c45557916a0bd5 /cmds/pm/src | |
parent | de74231f245c90e5861ec84a9880b5b4ec247480 (diff) | |
download | frameworks_base-5ab6e0bac2de1688f2f4bb0de2c9964a9b15a4e6.zip frameworks_base-5ab6e0bac2de1688f2f4bb0de2c9964a9b15a4e6.tar.gz frameworks_base-5ab6e0bac2de1688f2f4bb0de2c9964a9b15a4e6.tar.bz2 |
Whoops, wait around for pm result.
poll() returns immediately; we want to take() to wait for the result
to actually arrive.
Bug: 17510699
Change-Id: I87669e79e9941480fed33e4cc8a38de793d59e90
Diffstat (limited to 'cmds/pm/src')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index 3863bc7..6d12133 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -1702,7 +1702,11 @@ public final class Pm { } public Intent getResult() { - return mResult.poll(); + try { + return mResult.take(); + } catch (InterruptedException e) { + throw new RuntimeException(e); + } } } |