aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/server
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-04-01 07:42:20 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-04-01 07:42:20 -0700
commit5f95f1a4caff51459b77b0d6890e396e16617b9e (patch)
tree282c7e47f5a5f1a62964a47473c51472f7df995c /src/cpp/server
parentd35bb9ec62992cb01f44316a7267d39f1918149d (diff)
parentbd210c0bff6c8e52f49caa1cbc129359c24e2fbf (diff)
Merge github.com:grpc/grpc into cpparena
Diffstat (limited to 'src/cpp/server')
-rw-r--r--src/cpp/server/server_cc.cc4
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) {