Merge pull request #23495 from vjpai/fix_tls

Construct/destruct ExecCtx between init/shutdown only
pull/23499/head
Vijay Pai 4 years ago committed by GitHub
commit 0f0fd6e2a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      test/core/util/port_server_client.cc

@ -63,10 +63,11 @@ void grpc_free_port_using_server(int port) {
grpc_httpcli_response rsp;
freereq pr;
char* path;
grpc_core::ExecCtx exec_ctx;
grpc_closure* shutdown_closure;
grpc_init();
{
grpc_core::ExecCtx exec_ctx;
pr = {};
memset(&req, 0, sizeof(req));
@ -112,7 +113,7 @@ void grpc_free_port_using_server(int port) {
gpr_free(path);
grpc_http_response_destroy(&rsp);
}
grpc_shutdown();
}

Loading…
Cancel
Save