|  | @@ -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();
 |