Skip to content

Commit

Permalink
[pick_first] fix shutdown bug in new PF impl
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Nov 15, 2024
1 parent e352e89 commit 308f062
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/load_balancing/pick_first/pick_first.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,8 @@ void PickFirst::SubchannelList::Orphan() {
<< "[PF " << policy_.get() << "] Shutting down subchannel_list " << this;
CHECK(!shutting_down_);
shutting_down_ = true;
// Shut down subchannels.
subchannels_.clear();
// Cancel Happy Eyeballs timer, if any.
if (timer_handle_.has_value()) {
policy_->channel_control_helper()->GetEventEngine()->Cancel(*timer_handle_);
Expand Down

0 comments on commit 308f062

Please sign in to comment.