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

Commit d296f55f authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-merger
Browse files

Merge "Catch unbinding errors" into pi-dev

am: 47335f6e

Change-Id: Ibb4aed1aea64d3f3b1a88829cbdf3cc28a1799d5
parents 0230db03 47335f6e
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() {