diff options
Diffstat (limited to 'kafka/consumer/group.py')
-rw-r--r-- | kafka/consumer/group.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 8d2c65e..5f06e7b 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -1090,8 +1090,7 @@ class KafkaConsumer(six.Iterator): if time.time() > timeout_at: log.debug("internal iterator timeout - breaking for poll") break - if self._client.in_flight_request_count(): - self._client.poll(timeout_ms=0) + self._client.poll(timeout_ms=0) # An else block on a for loop only executes if there was no break # so this should only be called on a StopIteration from the fetcher |