diff --git a/src/cpp/thread_manager/thread_manager.cc b/src/cpp/thread_manager/thread_manager.cc index c5df8cf9e7a..8d51a6f2af2 100644 --- a/src/cpp/thread_manager/thread_manager.cc +++ b/src/cpp/thread_manager/thread_manager.cc @@ -34,13 +34,9 @@ ThreadManager::WorkerThread::WorkerThread(ThreadManager* thd_mgr) thd_ = grpc_core::Thread( "grpcpp_sync_server", [](void* th) { static_cast(th)->Run(); }, - this, - &created_ - ); + this, &created_); if (!created_) { - gpr_log(GPR_ERROR, - "Could not create grpc_sync_server worker-thread" - ); + gpr_log(GPR_ERROR, "Could not create grpc_sync_server worker-thread"); } else { thd_.Start(); } @@ -51,7 +47,6 @@ void ThreadManager::WorkerThread::Run() { thd_mgr_->MarkAsCompleted(this); } - ThreadManager::WorkerThread::~WorkerThread() { // Don't join until the thread is fully constructed. thd_.Join();