aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-08-10 15:07:43 -0700
committerGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-08-10 15:07:43 -0700
commite14020365c816ec54ebe59d1bf0cc399aef9644e (patch)
treeb08511799b9b2c096476004ad730fb50f3bc2e3e /src
parentc47056c0f6c2e6b9eae8299eac16b00349864ca3 (diff)
parentde02ae611f3a8fd43e34b8c972b5aace0df5219c (diff)
Merge pull request #2846 from ctiller/alphasprout
Shutdown lb_policy when changing it
Diffstat (limited to 'src')
-rw-r--r--src/core/channel/client_channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/channel/client_channel.c b/src/core/channel/client_channel.c
index a293c93ec6..6c2e6b38a8 100644
--- a/src/core/channel/client_channel.c
+++ b/src/core/channel/client_channel.c
@@ -527,6 +527,7 @@ static void cc_on_config_changed(void *arg, int iomgr_success) {
}
if (old_lb_policy != NULL) {
+ grpc_lb_policy_shutdown(old_lb_policy);
GRPC_LB_POLICY_UNREF(old_lb_policy, "channel");
}