Shutdown timer manager first and then executor

pull/14263/head
yang-g 7 years ago
parent d6358a5b0a
commit 8f65906521
  1. 2
      src/core/lib/surface/init.cc

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

Loading…
Cancel
Save