summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kafka/consumer/simple.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/consumer/simple.py b/kafka/consumer/simple.py
index 3d250ea..b50de61 100644
--- a/kafka/consumer/simple.py
+++ b/kafka/consumer/simple.py
@@ -214,8 +214,8 @@ class SimpleConsumer(Consumer):
# Reset queue and fetch offsets since they are invalid
self.fetch_offsets = self.offsets.copy()
+ self.count_since_commit += 1
if self.auto_commit:
- self.count_since_commit += 1
self.commit()
self.queue = Queue()