Skip to content

Commit

Permalink
Fix queue clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaB committed May 21, 2014
1 parent d9b093f commit e2f496e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nsque/testing_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def process_all
def clear_all
count = 0

while @producer.messages_count > count
while !@consumer.queue.empty?
message = @consumer.queue.pop
@consumer.confirm(message)

Expand Down

0 comments on commit e2f496e

Please sign in to comment.