summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Julia Reynolds <juliacr@google.com> 2017-08-18 09:21:36 -0400
committer Julia Reynolds <juliacr@google.com> 2017-08-18 10:23:14 -0400
commit72b411778cfdbb519ea20ac3ce774ff23f114e45 (patch)
tree38938c6a2833a190376cf844fc9fecba1f3e5577
parentfde112a2eb64c02d46fc0c42a4874f9e0631d611 (diff)
Clean up binding list on error
So that we can try again Test: manual Change-Id: I6be1e8d0377930d52c599261a7381c1e377cbcfc Fixes: 64458792
-rw-r--r--services/core/java/com/android/server/notification/ManagedServices.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/notification/ManagedServices.java b/services/core/java/com/android/server/notification/ManagedServices.java
index beaddb4c72dd..d5d0250f82af 100644
--- a/services/core/java/com/android/server/notification/ManagedServices.java
+++ b/services/core/java/com/android/server/notification/ManagedServices.java
@@ -877,6 +877,7 @@ abstract public class ManagedServices {
@Override
public void onServiceDisconnected(ComponentName name) {
+ mServicesBinding.remove(servicesBindingTag);
Slog.v(TAG, getCaption() + " connection lost: " + name);
}
};
@@ -889,6 +890,7 @@ abstract public class ManagedServices {
return;
}
} catch (SecurityException ex) {
+ mServicesBinding.remove(servicesBindingTag);
Slog.e(TAG, "Unable to bind " + getCaption() + " service: " + intent, ex);
}
}