aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-07-14 14:53:35 -0700
committerGravatar yang-g <yangg@google.com>2016-07-14 14:53:35 -0700
commit6ec11f2acd1311384cd17ea933e7bb9140ef75d7 (patch)
tree9658f8072cca48ff49bc5ec2a61ebe87586a14ad /include/grpc++
parente89dc6ceb60669e97b74e52311497af110dc4f21 (diff)
prevent spurious wake up and unstarted/already shutdown server
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/grpc++/server.h b/include/grpc++/server.h
index 9a2f8f11c4..6876961e21 100644
--- a/include/grpc++/server.h
+++ b/include/grpc++/server.h
@@ -179,6 +179,7 @@ class Server GRPC_FINAL : public ServerInterface, private GrpcLibraryCodegen {
grpc::mutex mu_;
bool started_;
bool shutdown_;
+ bool shutdown_notified_;
// The number of threads which are running callbacks.
int num_running_cb_;
grpc::condition_variable callback_cv_;