summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kafka/consumer/group.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py
index a4381a9..32a4a49 100644
--- a/kafka/consumer/group.py
+++ b/kafka/consumer/group.py
@@ -465,7 +465,7 @@ class KafkaConsumer(six.Iterator):
return records
self._fetcher.init_fetches()
- self._client.poll(timeout_ms)
+ self._client.poll(timeout_ms=timeout_ms, sleep=True)
return self._fetcher.fetched_records()
def position(self, partition):