From 1a551dcd384a4a1977f9dd7bca742afca78f3a95 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 25 Oct 2013 13:36:29 +0000 Subject: 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 --- qpid/cpp/src/qpid/broker/amqp/Session.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/src') 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 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"); } -- cgit v1.2.1