Fix a race in QPS client shutdown

Previously we were cleaning up threads only AFTER local resources were
reclaimed, leading to many crashes.
pull/1375/head
Craig Tiller 10 years ago
parent 884f4dad58
commit 77e0d64b4d
  1. 1
      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();

Loading…
Cancel
Save