Skip to content
Snippets Groups Projects
Commit 52760dd0 authored by Craig Tiller's avatar Craig Tiller
Browse files

Trigger server shutdown check where it needs to be

parent 3e9ff5c0
No related branches found
No related tags found
No related merge requests found
......@@ -196,6 +196,7 @@ static void begin_call(grpc_server *server, call_data *calld,
static void fail_call(grpc_server *server, requested_call *rc);
static void shutdown_channel(channel_data *chand, int send_goaway,
int send_disconnect);
static void maybe_finish_shutdown(grpc_server *server);
static int call_list_join(call_data **root, call_data *call, call_list list) {
GPR_ASSERT(!call->root[list]);
......@@ -315,6 +316,7 @@ static void destroy_channel(channel_data *chand) {
GPR_ASSERT(chand->server != NULL);
orphan_channel(chand);
server_ref(chand->server);
maybe_finish_shutdown(chand->server);
grpc_iomgr_add_callback(finish_destroy_channel, chand);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment