Skip to content

Commit 14ae367

Browse files
committed
Do not bother to remove pending installs
Pending install list is cleared if there is an error connecting to DCS, so don't try to remove each pending install in the loop. Change-Id: I736114878ad92136c3b8a3ca27a1f058adaba395
1 parent 4ce106f commit 14ae367

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

services/java/com/android/server/pm/PackageManagerService.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ void doHandleMessage(Message msg) {
523523
// Something seriously wrong. Bail out
524524
Slog.e(TAG, "Cannot bind to media container service");
525525
for (HandlerParams params : mPendingInstalls) {
526-
mPendingInstalls.remove(0);
527526
// Indicate service bind error
528527
params.serviceError();
529528
}
@@ -575,7 +574,6 @@ void doHandleMessage(Message msg) {
575574
if (!connectToService()) {
576575
Slog.e(TAG, "Failed to bind to media container service");
577576
for (HandlerParams params : mPendingInstalls) {
578-
mPendingInstalls.remove(0);
579577
// Indicate service bind error
580578
params.serviceError();
581579
}

0 commit comments

Comments
 (0)