diff options
author | Robbie Shade <rjshade@google.com> | 2016-06-30 15:11:28 -0400 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-07-13 21:38:59 +0200 |
commit | 7f6864ac1218d65fdca27fbd6dedc1dda3826699 (patch) | |
tree | fde180de4025d2b68071a5d3eadcc51923b6e624 /src/core/lib/iomgr | |
parent | ae8c64dc0083e546ae3cc4de3b3b48b2e8c31edb (diff) |
Use grpc_error instead of bool in udp_server's on_read
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r-- | src/core/lib/iomgr/udp_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/udp_server.c b/src/core/lib/iomgr/udp_server.c index 5854ca52b2..39e9c75efd 100644 --- a/src/core/lib/iomgr/udp_server.c +++ b/src/core/lib/iomgr/udp_server.c @@ -272,10 +272,10 @@ error: } /* event manager callback when reads are ready */ -static void on_read(grpc_exec_ctx *exec_ctx, void *arg, bool success) { +static void on_read(grpc_exec_ctx *exec_ctx, void *arg, grpc_error* error) { server_port *sp = arg; - if (!success) { + if (error != GRPC_ERROR_NONE) { gpr_mu_lock(&sp->server->mu); if (0 == --sp->server->active_ports) { gpr_mu_unlock(&sp->server->mu); |