summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-07-21 10:53:09 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-07-21 10:53:09 +0100
commitce04648364101332f298ffda7558496990d465b4 (patch)
tree254effbf008bb768ec253a33bec8369296fe6700
parenta4d652ec66431782a6907609b7a87fd2aa77fca5 (diff)
downloadrabbitmq-server-ce04648364101332f298ffda7558496990d465b4.tar.gz
If a new QPid appears more than once in the list, only monitor it once.
-rw-r--r--src/rabbit_channel.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 2ff337f8..0c878617 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -1169,7 +1169,7 @@ incr_stats(QXCounts, Item, State = #ch{queue_exchange_stats = Stats}) ->
{Q, _X} -> Q;
Q -> Q
end,
- case dict:is_key(QPid, Stats) of
+ case dict:is_key(QPid, Stats0) of
false -> erlang:monitor(process, QPid);
_ -> ok
end,