From cd624d2eeeb973f0a8170365a6a06464d320d463 Mon Sep 17 00:00:00 2001 From: vjpai Date: Tue, 19 Jan 2016 11:40:10 -0800 Subject: Dealt with a nit --- test/cpp/qps/qps_worker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/cpp/qps') diff --git a/test/cpp/qps/qps_worker.cc b/test/cpp/qps/qps_worker.cc index 73eb232775..c0276d05b3 100644 --- a/test/cpp/qps/qps_worker.cc +++ b/test/cpp/qps/qps_worker.cc @@ -197,7 +197,7 @@ class WorkerServiceImpl GRPC_FINAL : public WorkerService::Service { if (!args.has_setup()) { return Status(StatusCode::INVALID_ARGUMENT, ""); } - if (server_port_) { + if (server_port_ != 0) { args.mutable_setup()->set_port(server_port_); } auto server = CreateServer(args.setup()); -- cgit v1.2.3