diff options
author | Gordon Sim <gsim@apache.org> | 2008-03-28 19:45:01 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-03-28 19:45:01 +0000 |
commit | d09f88902502a8ef020dcfedaf1d2b868c8ee077 (patch) | |
tree | d620fe1aa62b916cfcd48736b47abae285d52c54 /cpp | |
parent | 3ebe0d3e1499243c6517aa69e22faea00facf7be (diff) | |
download | qpid-python-d09f88902502a8ef020dcfedaf1d2b868c8ee077.tar.gz |
Prefer binding key for unbind if specified.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@642346 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/qpid/broker/HeadersExchange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/HeadersExchange.cpp b/cpp/src/qpid/broker/HeadersExchange.cpp index 34fbbef305..886ad4767b 100644 --- a/cpp/src/qpid/broker/HeadersExchange.cpp +++ b/cpp/src/qpid/broker/HeadersExchange.cpp @@ -102,7 +102,7 @@ bool HeadersExchange::unbind(Queue::shared_ptr queue, const string& bindingKey, RWlock::ScopedWlock locker(lock); Bindings::iterator i; for (i = bindings.begin(); i != bindings.end(); i++) { - if (args) { + if (bindingKey.empty() && args) { if (i->first == *args && i->second->queue == queue) break; } else { |