Skip to content
Snippets Groups Projects
Commit 70ee74c4 authored by Craig Tiller's avatar Craig Tiller Committed by GitHub
Browse files

Merge pull request #8427 from ctiller/lock-cycle

Avoid TSAN reported lock cycle
parents 20e77f27 2406e31b
No related branches found
No related tags found
No related merge requests found
......@@ -118,8 +118,11 @@ static void on_connect(grpc_exec_ctx *exec_ctx, void *arg, grpc_endpoint *tcp,
grpc_endpoint_shutdown(exec_ctx, tcp);
grpc_endpoint_destroy(exec_ctx, tcp);
on_connect_result temp_result;
on_connect_result_set(&temp_result, acceptor);
gpr_mu_lock(g_mu);
on_connect_result_set(&g_result, acceptor);
g_result = temp_result;
g_nconnects++;
GPR_ASSERT(
GRPC_LOG_IF_ERROR("pollset_kick", grpc_pollset_kick(g_pollset, NULL)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment