Skip to content
Snippets Groups Projects
Commit 77e0d64b authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix a race in QPS client shutdown

Previously we were cleaning up threads only AFTER local resources were
reclaimed, leading to many crashes.
parent 884f4dad
No related branches found
No related tags found
No related merge requests found
...@@ -105,6 +105,7 @@ class SynchronousStreamingClient GRPC_FINAL : public SynchronousClient { ...@@ -105,6 +105,7 @@ class SynchronousStreamingClient GRPC_FINAL : public SynchronousClient {
StartThreads(num_threads_); StartThreads(num_threads_);
} }
~SynchronousStreamingClient() { ~SynchronousStreamingClient() {
EndThreads();
if (stream_) { if (stream_) {
SimpleResponse response; SimpleResponse response;
stream_->WritesDone(); stream_->WritesDone();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment