[pick_first] ignore duplicate calls to ExitIdleLocked() (#34374)

pull/34378/head
Mark D. Roth 1 year ago committed by GitHub
parent 5a4e8f3dbd
commit b6f01c68aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc

@ -317,7 +317,10 @@ void PickFirst::ShutdownLocked() {
void PickFirst::ExitIdleLocked() {
if (shutdown_) return;
if (state_ == GRPC_CHANNEL_IDLE) {
// Need to check subchannel_list_ being null here, in case the
// application calls channel->GetState(true) again before we
// transition to state CONNECTING.
if (state_ == GRPC_CHANNEL_IDLE && subchannel_list_ == nullptr) {
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_pick_first_trace)) {
gpr_log(GPR_INFO, "Pick First %p exiting idle", this);
}

Loading…
Cancel
Save