diff options
author | Craig Tiller <ctiller@google.com> | 2016-09-16 12:11:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-16 12:11:11 -0700 |
commit | ee43d7bbb11a36c91c6f1ebff6bf3da70b7546b2 (patch) | |
tree | 46e7b607b14425dc575520f089f4e9373322f250 /src/core/lib/surface/channel.c | |
parent | d72df881d62a89c7bb55424740cea8dbb58c99f3 (diff) | |
parent | 57726ca5a9c08ba17c882a798b93e03d333edd9f (diff) |
Merge pull request #8069 from grpc/revert-8068-revert-7279-grand-unified-closures
Revert "Revert "Grand unified closures""
Diffstat (limited to 'src/core/lib/surface/channel.c')
-rw-r--r-- | src/core/lib/surface/channel.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/lib/surface/channel.c b/src/core/lib/surface/channel.c index 6d2b1c4935..52e78567bd 100644 --- a/src/core/lib/surface/channel.c +++ b/src/core/lib/surface/channel.c @@ -334,14 +334,13 @@ static void destroy_channel(grpc_exec_ctx *exec_ctx, void *arg, } void grpc_channel_destroy(grpc_channel *channel) { - grpc_transport_op op; + grpc_transport_op *op = grpc_make_transport_op(NULL); grpc_channel_element *elem; grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; GRPC_API_TRACE("grpc_channel_destroy(channel=%p)", 1, (channel)); - memset(&op, 0, sizeof(op)); - op.disconnect_with_error = GRPC_ERROR_CREATE("Channel Destroyed"); + op->disconnect_with_error = GRPC_ERROR_CREATE("Channel Destroyed"); elem = grpc_channel_stack_element(CHANNEL_STACK_FROM_CHANNEL(channel), 0); - elem->filter->start_transport_op(&exec_ctx, elem, &op); + elem->filter->start_transport_op(&exec_ctx, elem, op); GRPC_CHANNEL_INTERNAL_UNREF(&exec_ctx, channel, "channel"); |