summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_channel.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index e047db60..e59eca32 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -1284,8 +1284,8 @@ cancel_consumer(CTag, QName, State = #ch{consumer_mapping = CMap}) ->
queue_down_consumer_action(CTag, CMap) ->
{_, {_, _, _, Args} = ConsumeSpec} = dict:fetch(CTag, CMap),
case rabbit_misc:table_lookup(Args, <<"cancel-on-ha-failover">>) of
- {bool, false} -> {recover, ConsumeSpec};
- _ -> remove
+ {bool, true} -> remove;
+ _ -> {recover, ConsumeSpec}
end.
handle_delivering_queue_down(QPid, State = #ch{delivering_queues = DQ}) ->