diff options
author | Craig Tiller <ctiller@google.com> | 2015-11-24 16:28:54 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-11-24 16:28:54 -0800 |
commit | 27e5aa47a734929f902481b66fab795a8bba65ae (patch) | |
tree | 668c15224db8104935d34a30a5300218999ddd28 /test/core/end2end/fixtures | |
parent | 11beb9a55c34fdac8398ce01381ca030c8d6223f (diff) |
Test fixes
Diffstat (limited to 'test/core/end2end/fixtures')
-rw-r--r-- | test/core/end2end/fixtures/h2_uchannel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/core/end2end/fixtures/h2_uchannel.c b/test/core/end2end/fixtures/h2_uchannel.c index 6c1638590f..d194df1c2d 100644 --- a/test/core/end2end/fixtures/h2_uchannel.c +++ b/test/core/end2end/fixtures/h2_uchannel.c @@ -241,6 +241,10 @@ static void state_changed(grpc_exec_ctx *exec_ctx, void *arg, int success) { } } +static void destroy_pollset(grpc_exec_ctx *exec_ctx, void *arg, int success) { + grpc_pollset_destroy(arg); +} + static grpc_connected_subchannel *connect_subchannel(grpc_subchannel *c) { grpc_pollset pollset; grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; @@ -259,6 +263,8 @@ static grpc_connected_subchannel *connect_subchannel(grpc_subchannel *c) { grpc_exec_ctx_flush(&exec_ctx); gpr_mu_lock(GRPC_POLLSET_MU(&pollset)); } + grpc_pollset_shutdown(&exec_ctx, &pollset, + grpc_closure_create(destroy_pollset, &pollset)); gpr_mu_unlock(GRPC_POLLSET_MU(&pollset)); grpc_subchannel_del_interested_party(&exec_ctx, c, &pollset); grpc_exec_ctx_finish(&exec_ctx); |