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

Commit 72b41177 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Clean up binding list on error

So that we can try again

Test: manual
Change-Id: I6be1e8d0377930d52c599261a7381c1e377cbcfc
Fixes: 64458792
parent fde112a2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
        }
    }