aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Robbie Shade <rjshade@google.com>2016-06-30 15:11:28 -0400
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-07-13 21:38:59 +0200
commit7f6864ac1218d65fdca27fbd6dedc1dda3826699 (patch)
treefde180de4025d2b68071a5d3eadcc51923b6e624
parentae8c64dc0083e546ae3cc4de3b3b48b2e8c31edb (diff)
Use grpc_error instead of bool in udp_server's on_read
-rw-r--r--src/core/lib/iomgr/udp_server.c4
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);