summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/BrokerAdapter.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-10-23 14:50:56 +0000
committerGordon Sim <gsim@apache.org>2007-10-23 14:50:56 +0000
commit47c3698db7e5a52a7958ebb635e736b2f95df1f9 (patch)
tree0f2c5026876d5ef822c93c1d6d95f26757735085 /cpp/src/qpid/broker/BrokerAdapter.cpp
parent6b509c871fae213fc2cf6b434e670c8d3bd953b4 (diff)
downloadqpid-python-47c3698db7e5a52a7958ebb635e736b2f95df1f9.tar.gz
Hack for no-local when used with jms topics
Fix for releasing of exclusive ownership of queues second time around git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@587525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/BrokerAdapter.cpp')
-rw-r--r--cpp/src/qpid/broker/BrokerAdapter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/BrokerAdapter.cpp b/cpp/src/qpid/broker/BrokerAdapter.cpp
index daa63f4b0c..99b585406e 100644
--- a/cpp/src/qpid/broker/BrokerAdapter.cpp
+++ b/cpp/src/qpid/broker/BrokerAdapter.cpp
@@ -202,8 +202,8 @@ void BrokerAdapter::QueueHandlerImpl::declare(uint16_t /*ticket*/, const string&
getConnection().exclusiveQueues.push_back(queue);
}
} else {
- if (exclusive && !queue->hasExclusiveOwner()) {
- queue->setExclusiveOwner(&getConnection());
+ if (exclusive && queue->setExclusiveOwner(&getConnection())) {
+ getConnection().exclusiveQueues.push_back(queue);
}
}
}