diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2010-07-21 10:53:09 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2010-07-21 10:53:09 +0100 |
| commit | 3e15fa35920f7be97dddca250eb9e5e0969ae434 (patch) | |
| tree | 254effbf008bb768ec253a33bec8369296fe6700 | |
| parent | c1c6fe20d0febaefe1984398ea0bbbcfa5b10fba (diff) | |
| download | rabbitmq-server-git-3e15fa35920f7be97dddca250eb9e5e0969ae434.tar.gz | |
If a new QPid appears more than once in the list, only monitor it once.
| -rw-r--r-- | src/rabbit_channel.erl | 2 |
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, |
