Skip to content
Snippets Groups Projects
Commit 13735d5d authored by Vijay Pai's avatar Vijay Pai
Browse files

if->while

parent 56061995
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
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