commit | 77e0d64b4d45f6262f41aba59ca34928841a9975 | [log] [tgz] |
---|---|---|
author | Craig Tiller <ctiller@google.com> | Mon Apr 27 10:52:54 2015 -0700 |
committer | Craig Tiller <ctiller@google.com> | Mon Apr 27 10:52:54 2015 -0700 |
tree | 5ca48a793a0be2be9a7a6b8125fc69467152065f | |
parent | 884f4dad58891a119c53af664680c134c73723b3 [diff] [blame] |
Fix a race in QPS client shutdown Previously we were cleaning up threads only AFTER local resources were reclaimed, leading to many crashes.
diff --git a/test/cpp/qps/client_sync.cc b/test/cpp/qps/client_sync.cc index aea5a0f..5dd64d0 100644 --- a/test/cpp/qps/client_sync.cc +++ b/test/cpp/qps/client_sync.cc
@@ -105,6 +105,7 @@ StartThreads(num_threads_); } ~SynchronousStreamingClient() { + EndThreads(); if (stream_) { SimpleResponse response; stream_->WritesDone();