diff options
author | Carl C. Trieloff <cctrieloff@apache.org> | 2007-10-26 02:37:54 +0000 |
---|---|---|
committer | Carl C. Trieloff <cctrieloff@apache.org> | 2007-10-26 02:37:54 +0000 |
commit | b19d20c0277ff20609f9f0774224accd5ff3e452 (patch) | |
tree | c2842f576f8b8f7a1bfc30ad3165fb28116d7f95 /cpp/src/qpid/broker/Queue.cpp | |
parent | 8863c11dabfec9fee5d398361250aa6b4a46e538 (diff) | |
download | qpid-python-b19d20c0277ff20609f9f0774224accd5ff3e452.tar.gz |
- added patch from Tedd
- QPID-660
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@588478 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Queue.cpp')
-rw-r--r-- | cpp/src/qpid/broker/Queue.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Queue.cpp b/cpp/src/qpid/broker/Queue.cpp index ef1358feb9..116e8d9431 100644 --- a/cpp/src/qpid/broker/Queue.cpp +++ b/cpp/src/qpid/broker/Queue.cpp @@ -293,6 +293,10 @@ void Queue::consume(Consumer::ptr c, bool requestExclusive){ } browsers.push_back(c); } + + if (mgmtObjectPtr != 0){ + mgmtObjectPtr->incConsumers (); + } } void Queue::cancel(Consumer::ptr c){ @@ -302,6 +306,9 @@ void Queue::cancel(Consumer::ptr c){ } else { cancel(c, browsers); } + if (mgmtObjectPtr != 0){ + mgmtObjectPtr->decConsumers (); + } if(exclusive == c) exclusive.reset(); } |