aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-04-27 10:52:54 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-04-27 10:52:54 -0700
commit77e0d64b4d45f6262f41aba59ca34928841a9975 (patch)
tree5ca48a793a0be2be9a7a6b8125fc69467152065f /test/cpp
parent884f4dad58891a119c53af664680c134c73723b3 (diff)
Fix a race in QPS client shutdown
Previously we were cleaning up threads only AFTER local resources were reclaimed, leading to many crashes.
Diffstat (limited to 'test/cpp')
-rw-r--r--test/cpp/qps/client_sync.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cpp/qps/client_sync.cc b/test/cpp/qps/client_sync.cc
index aea5a0fb27..5dd64d0b13 100644
--- a/test/cpp/qps/client_sync.cc
+++ b/test/cpp/qps/client_sync.cc
@@ -105,6 +105,7 @@ class SynchronousStreamingClient GRPC_FINAL : public SynchronousClient {
StartThreads(num_threads_);
}
~SynchronousStreamingClient() {
+ EndThreads();
if (stream_) {
SimpleResponse response;
stream_->WritesDone();