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

Commit 7e9659fa authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Catch unbinding errors

Test: none
Change-Id: Ia8ca50c7c55b86fac84a04a5e4ef2aa36ae6bf6e
Fixes: 72206319
parent 24f22135
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -982,7 +982,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() {