From 77e0d64b4d45f6262f41aba59ca34928841a9975 Mon Sep 17 00:00:00 2001 From: Craig Tiller <ctiller@google.com> Date: Mon, 27 Apr 2015 10:52:54 -0700 Subject: [PATCH] Fix a race in QPS client shutdown Previously we were cleaning up threads only AFTER local resources were reclaimed, leading to many crashes. --- test/cpp/qps/client_sync.cc | 1 + 1 file changed, 1 insertion(+) 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(); -- GitLab