Catch unbinding errors
Test: none
Change-Id: Ia8ca50c7c55b86fac84a04a5e4ef2aa36ae6bf6e
Fixes: 72206319
(cherry picked from commit 7e9659fadc)
This commit is contained in:
committed by
Julia Tuttle
parent
e388855c62
commit
2107bea9c4
@@ -906,7 +906,11 @@ abstract public class ManagedServices {
|
||||
Slog.w(TAG, getCaption() + " binding died: " + name);
|
||||
synchronized (mMutex) {
|
||||
mServicesBinding.remove(servicesBindingTag);
|
||||
mContext.unbindService(this);
|
||||
try {
|
||||
mContext.unbindService(this);
|
||||
} catch (IllegalArgumentException e) {
|
||||
Slog.e(TAG, "failed to unbind " + name, e);
|
||||
}
|
||||
if (!mServicesRebinding.contains(servicesBindingTag)) {
|
||||
mServicesRebinding.add(servicesBindingTag);
|
||||
mHandler.postDelayed(new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user