diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-01 07:42:20 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-01 07:42:20 -0700 |
commit | 5f95f1a4caff51459b77b0d6890e396e16617b9e (patch) | |
tree | 282c7e47f5a5f1a62964a47473c51472f7df995c /src/cpp/server | |
parent | d35bb9ec62992cb01f44316a7267d39f1918149d (diff) | |
parent | bd210c0bff6c8e52f49caa1cbc129359c24e2fbf (diff) |
Merge github.com:grpc/grpc into cpparena
Diffstat (limited to 'src/cpp/server')
-rw-r--r-- | src/cpp/server/server_cc.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpp/server/server_cc.cc b/src/cpp/server/server_cc.cc index a611e1a77b..ef4a67ca14 100644 --- a/src/cpp/server/server_cc.cc +++ b/src/cpp/server/server_cc.cc @@ -489,7 +489,9 @@ void Server::RegisterAsyncGenericService(AsyncGenericService* service) { int Server::AddListeningPort(const grpc::string& addr, ServerCredentials* creds) { GPR_ASSERT(!started_); - return creds->AddPortToServer(addr, server_); + int port = creds->AddPortToServer(addr, server_); + global_callbacks_->AddPort(this, port); + return port; } bool Server::Start(ServerCompletionQueue** cqs, size_t num_cqs) { |