Skip to content
This repository was archived by the owner on Mar 24, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pykafka/simpleconsumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ def consume(self, block=True):
if self._messages_arrived.acquire(blocking=block, timeout=timeout):
# by passing through this semaphore, we know that at
# least one message is waiting in some queue.
if not self._running:
raise ConsumerStoppedException()
message = None
while not message:
owned_partition = next(self.partition_cycle)
Expand Down