[priority LB] fix use-after-move bug (#35597)

Closes #35597

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35597 from markdroth:priority_use_after_move_fix 61025638b5
PiperOrigin-RevId: 599641709
pull/35604/head
Mark D. Roth 10 months ago committed by Copybara-Service
parent 98472179fb
commit f37f7c9b4b
  1. 2
      src/core/ext/filters/client_channel/lb_policy/priority/priority.cc

@ -292,7 +292,7 @@ PriorityLb::PriorityLb(Args args)
: LoadBalancingPolicy(std::move(args)),
child_failover_timeout_(std::max(
Duration::Zero(),
args.args
channel_args()
.GetDurationFromIntMillis(GRPC_ARG_PRIORITY_FAILOVER_TIMEOUT_MS)
.value_or(kDefaultChildFailoverTimeout))) {
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_priority_trace)) {

Loading…
Cancel
Save