diff options
author | 2017-11-16 08:35:25 -0800 | |
---|---|---|
committer | 2017-11-16 08:35:25 -0800 | |
commit | 6c8ee58f955d04cbc9733ee899c50e01fecef9d9 (patch) | |
tree | 55b9c4b359c52d2c1837a4e22411bab617bdc3ec /src/core/ext/filters/client_channel/lb_policy/grpclb | |
parent | 366e23b604d6458787ef8df77a2fed9c6d861f45 (diff) |
Restart LB call after client load report completion, if needed.
Diffstat (limited to 'src/core/ext/filters/client_channel/lb_policy/grpclb')
-rw-r--r-- | src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc index 040941a34d..ad9a2bb83b 100644 --- a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +++ b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc @@ -1342,6 +1342,9 @@ static void client_load_report_done_locked(grpc_exec_ctx* exec_ctx, void* arg, glb_policy->client_load_report_timer_pending = false; GRPC_LB_POLICY_WEAK_UNREF(exec_ctx, &glb_policy->base, "client_load_report"); + if (glb_policy->lb_call == nullptr) { + maybe_restart_lb_call(exec_ctx, glb_policy); + } return; } schedule_next_client_load_report(exec_ctx, glb_policy); |