Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly remove security index recovered state consumer (elastic#112927…
…) (elastic#112996) One of the security index state change listeners attempts to remove itself once it has received the expected event. However, since the consumer is a lambda, `this` in `stateChangeListeners.remove(this);` actually refers to the enclosing class instance (`SecurityIndexManager.this`) which results in a noop and not an actual removal of the relevant consumer. This PR fixes this by converting the lambda to an anonymous class. It's technically a bug, but so minor that it doesn't warrant a bug changelog IMO; so I'm labelling it a non-issue instead.
- Loading branch information