Skip to content

Commit

Permalink
Include non-strict inequality for delivery tags
Browse files Browse the repository at this point in the history
  • Loading branch information
gdb authored and Michael Klishin committed Jan 10, 2013
1 parent 4ca7986 commit 13dc862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bunny/channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def handle_basic_return(basic_return, properties, content)

def handle_ack_or_nack(delivery_tag, multiple, nack)
if multiple
@unconfirmed_set.delete_if { |i| i < delivery_tag }
@unconfirmed_set.delete_if { |i| i <= delivery_tag }
else
@unconfirmed_set.delete(delivery_tag)
end
Expand Down

0 comments on commit 13dc862

Please sign in to comment.