Skip to content

Commit

Permalink
fix queue empty bug (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhh3000 authored and f2prateek committed Sep 21, 2017
1 parent 8c4b39a commit e076ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analytics/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def next(self):
queue = self.queue
items = []

while len(items) < self.upload_size or self.queue.empty():
while len(items) < self.upload_size:
try:
item = queue.get(block=True, timeout=0.5)
items.append(item)
Expand Down

0 comments on commit e076ccd

Please sign in to comment.