|
|
@ -588,7 +588,7 @@ void Server::Start(ServerCompletionQueue** cqs, size_t num_cqs) { |
|
|
|
// If this server has any support for synchronous methods (has any sync
|
|
|
|
// If this server has any support for synchronous methods (has any sync
|
|
|
|
// server CQs), make sure that we have a ResourceExhausted handler
|
|
|
|
// server CQs), make sure that we have a ResourceExhausted handler
|
|
|
|
// to deal with the case of thread exhaustion
|
|
|
|
// to deal with the case of thread exhaustion
|
|
|
|
if (!sync_server_cqs_->empty()) { |
|
|
|
if (sync_server_cqs != nullptr && !sync_server_cqs_->empty()) { |
|
|
|
resource_exhausted_handler_.reset(new internal::ResourceExhaustedHandler); |
|
|
|
resource_exhausted_handler_.reset(new internal::ResourceExhaustedHandler); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|