Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Wait to unsubscribe until Basic.CancelOk is received
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Dec 8, 2009
1 parent 9245cc9 commit 893248c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/mq/queue.rb
Expand Up @@ -336,7 +336,6 @@ def subscribe opts = {}, &blk
# method it will raise a channel or connection exception.
#
def unsubscribe opts = {}, &blk
@on_msg = nil
@on_cancel = blk
@mq.callback{
@mq.send Protocol::Basic::Cancel.new({ :consumer_tag => @consumer_tag }.merge(opts))
Expand Down

0 comments on commit 893248c

Please sign in to comment.