Destroy health check service before destroying C server.

pull/23884/head
Mark D. Roth 4 years ago
parent d58afe5e4d
commit 9a0435e83e
  1. 5
      src/cpp/server/server_cc.cc

@ -981,7 +981,10 @@ Server::~Server() {
} }
} }
} }
// Destroy health check service before we destroy the C server so that
// it does not call grpc_server_request_registered_call() after the C
// server has been destroyed.
health_check_service_.reset();
grpc_server_destroy(server_); grpc_server_destroy(server_);
} }

Loading…
Cancel
Save