Merge "Clean up binding list on error" into oc-mr1-dev am: 563e4982a9

am: 7544eed3ce

Change-Id: I57d06b844fb6aea56fac300d334156daf1dbc7f9
This commit is contained in:
Julia Reynolds
2017-08-18 18:20:46 +00:00
committed by android-build-merger

View File

@@ -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);
}
}