diff options
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/amqp/Session.cpp | 4 |
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"); } |
