Merge pull request #14263 from yang-g/latency_tool

Shutdown timer manager first and then executor
pull/14272/head
Yang Gao 7 years ago committed by GitHub
commit 7159c0f7e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/surface/init.cc

@ -162,9 +162,9 @@ void grpc_shutdown(void) {
{
grpc_core::ExecCtx exec_ctx(0);
{
grpc_executor_shutdown();
grpc_timer_manager_set_threading(
false); // shutdown timer_manager thread
grpc_executor_shutdown();
for (i = g_number_of_plugins; i >= 0; i--) {
if (g_all_of_the_plugins[i].destroy != nullptr) {
g_all_of_the_plugins[i].destroy();

Loading…
Cancel
Save