summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-03-02 08:51:10 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2012-03-02 08:51:10 +0000
commitc95a550b89724c255769d4fee2f8f9fababe7e75 (patch)
tree56c9e6ac83cc3c66e5df2a671a0010d28aeae262
parenta3801ae50b63e420f98c6e3f6322f67752a2e37f (diff)
downloadrabbitmq-server-c95a550b89724c255769d4fee2f8f9fababe7e75.tar.gz
cosmetic
-rw-r--r--src/rabbit_channel.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index d5cba91b..bb6636eb 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -1146,10 +1146,10 @@ consumer_monitor(ConsumerTag,
end.
monitor_queue(QPid, State = #ch{queue_monitors = QMons}) ->
- case not sets:is_element(QPid, QMons) of
- true -> erlang:monitor(process, QPid),
+ case sets:is_element(QPid, QMons) of
+ false -> erlang:monitor(process, QPid),
State#ch{queue_monitors = sets:add_element(QPid, QMons)};
- false -> State
+ true -> State
end.
handle_publishing_queue_down(QPid, Reason, State = #ch{unconfirmed_qm = UQM}) ->