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

Merge pull request #2173 from nicolasnoble/don-t-recurse-locks

Fixing recursive locking under Windows.
parents 138f9475 04a841f2
No related branches found
No related tags found
No related merge requests found
......@@ -138,10 +138,12 @@ static void destroy_done(void *statep) {
callbacks) */
static void destroy(grpc_server *server, void *statep) {
grpc_server_secure_state *state = statep;
grpc_tcp_server *tcp;
gpr_mu_lock(&state->mu);
state->is_shutdown = 1;
grpc_tcp_server_destroy(state->tcp, destroy_done, state);
tcp = state->tcp;
gpr_mu_unlock(&state->mu);
grpc_tcp_server_destroy(tcp, destroy_done, state);
}
int grpc_server_add_secure_http2_port(grpc_server *server, const char *addr,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment