From de02ae611f3a8fd43e34b8c972b5aace0df5219c Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Fri, 7 Aug 2015 14:19:38 -0700 Subject: Shutdown lb_policy when changing it --- src/core/channel/client_channel.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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"); } -- cgit v1.2.3