Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebd047e9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Catch unbinding errors" into oc-mr1-dev

parents d4a1791b 2107bea9
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -906,7 +906,11 @@ abstract public class ManagedServices {
                    Slog.w(TAG, getCaption() + " binding died: " + name);
                    synchronized (mMutex) {
                        mServicesBinding.remove(servicesBindingTag);
                        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() {