From 2e46bb5d88ee3202c244e9fcd39837b0a02f993a Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 13 Sep 2013 17:01:26 -0700 Subject: [PATCH] Fix issue #10747324: adb install hangs Dumb typo was clearing the wrong service array, causing us to sometimes forget we were launching a service. Change-Id: Ie1aba0e07d19e85a104a5985e3cead5f28a0556a --- services/java/com/android/server/am/ActiveServices.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/java/com/android/server/am/ActiveServices.java b/services/java/com/android/server/am/ActiveServices.java index b4d9da012845d..b75eab4e02b32 100644 --- a/services/java/com/android/server/am/ActiveServices.java +++ b/services/java/com/android/server/am/ActiveServices.java @@ -181,8 +181,8 @@ public final class ActiveServices { if (DEBUG_DELAYED_STATS) Slog.v(TAG, "No longer background starting: " + r); rescheduleDelayedStarts(); } - if (mPendingServices.remove(r)) { - if (DEBUG_DELAYED_STATS) Slog.v(TAG, "No longer pending start: " + r); + if (mDelayedStartList.remove(r)) { + if (DEBUG_DELAYED_STATS) Slog.v(TAG, "No longer delaying start: " + r); } }