summaryrefslogtreecommitdiff
path: root/src
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
commit3e15fa35920f7be97dddca250eb9e5e0969ae434 (patch)
tree254effbf008bb768ec253a33bec8369296fe6700 /src
parentc1c6fe20d0febaefe1984398ea0bbbcfa5b10fba (diff)
downloadrabbitmq-server-git-3e15fa35920f7be97dddca250eb9e5e0969ae434.tar.gz
If a new QPid appears more than once in the list, only monitor it once.
Diffstat (limited to 'src')
-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 2ff337f822..0c8786177f 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,