summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-10-25 13:36:29 +0000
committerGordon Sim <gsim@apache.org>2013-10-25 13:36:29 +0000
commit1a551dcd384a4a1977f9dd7bca742afca78f3a95 (patch)
treee91b51207bc81ee4661ecc62bcc8afb0bf12f5cf /qpid/cpp
parent693d310f809d3e3f0b2b5b8fb84389049f9338c6 (diff)
downloadqpid-python-1a551dcd384a4a1977f9dd7bca742afca78f3a95.tar.gz
QPID-5248: fix regression caused by previous commit on this issue
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1535731 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/broker/amqp/Session.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/amqp/Session.cpp b/qpid/cpp/src/qpid/broker/amqp/Session.cpp
index 9203ce17e4..006493f01f 100644
--- a/qpid/cpp/src/qpid/broker/amqp/Session.cpp
+++ b/qpid/cpp/src/qpid/broker/amqp/Session.cpp
@@ -476,7 +476,9 @@ void Session::detach(pn_link_t* link)
if (i != outgoing.end()) {
i->second->detached();
boost::shared_ptr<Queue> q = OutgoingFromQueue::getExclusiveSubscriptionQueue(i->second.get());
- if (q) connection.getBroker().deleteQueue(q->getName(), connection.getUserId(), connection.getMgmtId());
+ if (q && !q->isAutoDelete() && !q->isDeleted()) {
+ connection.getBroker().deleteQueue(q->getName(), connection.getUserId(), connection.getMgmtId());
+ }
outgoing.erase(i);
QPID_LOG(debug, "Outgoing link detached");
}