aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2015-07-01 14:00:08 -0700
committerGravatar Vijay Pai <vpai@google.com>2015-07-01 14:00:08 -0700
commit13735d5d7e8b9413ec6ba54af4eeb0e88cd0302f (patch)
treec2e41977ed8a89a03d803f360ad7ba6cbd19db53 /test/cpp/qps
parent560619958524aac022b54eb9dec51071684651ed (diff)
if->while
Diffstat (limited to 'test/cpp/qps')
-rw-r--r--test/cpp/qps/client_async.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/qps/client_async.cc b/test/cpp/qps/client_async.cc
index 7c89a35ee7..e1e44f9ac0 100644
--- a/test/cpp/qps/client_async.cc
+++ b/test/cpp/qps/client_async.cc
@@ -201,7 +201,7 @@ class AsyncClient : public Client {
}
// Now clear out all the pre-allocated idle contexts
for (int ch = 0; ch < channel_count_; ch++) {
- if (!contexts_[ch].empty()) {
+ while (!contexts_[ch].empty()) {
// Get an idle context from the front of the list
auto* ctx = *(contexts_[ch].begin());
contexts_[ch].pop_front();