Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xds: Check for validity of xdsClient in ClusterImplLbHelper (grpc#11553)
* Added null check for xdsClient in onSubChannelState. This avoids NPE for xdsClient when LB is shutdown and onSubChannelState is called later as part of listener callback. As shutdown is racy and eventually consistent, this check would avoid calculating locality after LB is shutdown.
- Loading branch information