Merge "Clean up binding list on error" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
563e4982a9
@@ -877,6 +877,7 @@ abstract public class ManagedServices {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onServiceDisconnected(ComponentName name) {
|
public void onServiceDisconnected(ComponentName name) {
|
||||||
|
mServicesBinding.remove(servicesBindingTag);
|
||||||
Slog.v(TAG, getCaption() + " connection lost: " + name);
|
Slog.v(TAG, getCaption() + " connection lost: " + name);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -889,6 +890,7 @@ abstract public class ManagedServices {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (SecurityException ex) {
|
} catch (SecurityException ex) {
|
||||||
|
mServicesBinding.remove(servicesBindingTag);
|
||||||
Slog.e(TAG, "Unable to bind " + getCaption() + " service: " + intent, ex);
|
Slog.e(TAG, "Unable to bind " + getCaption() + " service: " + intent, ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user