diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-12 08:10:58 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-12 08:10:58 -0700 |
commit | 58aa706aaf1c39e092f246202b18e6a2931dc664 (patch) | |
tree | cc64f3973670d9f20b4ddda1dc05efa3576733c9 /src/core/lib/surface/server.c | |
parent | 2e018891be8132e763eda8b8871219fc16d20415 (diff) |
Fix registration
Diffstat (limited to 'src/core/lib/surface/server.c')
-rw-r--r-- | src/core/lib/surface/server.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/lib/surface/server.c b/src/core/lib/surface/server.c index 767c91a5ec..1680085f67 100644 --- a/src/core/lib/surface/server.c +++ b/src/core/lib/surface/server.c @@ -1009,8 +1009,6 @@ void grpc_server_register_completion_queue(grpc_server *server, calls grpc_completion_queue_pluck() on server completion queues */ } - GPR_ASSERT(grpc_cq_pollset(cq)); - register_completion_queue(server, cq, false, reserved); } @@ -1105,8 +1103,7 @@ void grpc_server_start(grpc_server *server) { for (i = 0; i < server->cq_count; i++) { if (!grpc_cq_is_non_listening_server_cq(server->cqs[i])) { grpc_pollset *pollset = grpc_cq_pollset(server->cqs[i]); - GPR_ASSERT(pollset); - server->pollsets[server->pollset_count++] = pollset; + if (pollset != NULL) server->pollsets[server->pollset_count++] = pollset; } server->request_freelist_per_cq[i] = gpr_stack_lockfree_create((size_t)server->max_requested_calls_per_cq); |