Fix error refcounting bug.

reviewable/pr14886/r8
Mark D. Roth 7 years ago
parent d143bc345e
commit a25ece9f6a
  1. 4
      src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc

@ -486,8 +486,8 @@ void RoundRobin::RoundRobinSubchannelData::UpdateConnectivityStateLocked(
grpc_connectivity_state_name(last_connectivity_state_), grpc_connectivity_state_name(last_connectivity_state_),
grpc_connectivity_state_name(connectivity_state)); grpc_connectivity_state_name(connectivity_state));
} }
subchannel_list()->UpdateStateCountersLocked( subchannel_list()->UpdateStateCountersLocked(last_connectivity_state_,
last_connectivity_state_, connectivity_state, GRPC_ERROR_REF(error)); connectivity_state, error);
last_connectivity_state_ = connectivity_state; last_connectivity_state_ = connectivity_state;
} }

Loading…
Cancel
Save