From 685aad458c485cd260df694f58d2f7641ce94e32 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 11 Oct 2007 13:29:37 +0000 Subject: Exclusive no longer implies auto-delete on queue.declare. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@583821 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SemanticState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/broker/SemanticState.cpp') diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp index 4214f67bfe..1d49e08eb0 100644 --- a/cpp/src/qpid/broker/SemanticState.cpp +++ b/cpp/src/qpid/broker/SemanticState.cpp @@ -290,7 +290,7 @@ void SemanticState::ConsumerImpl::cancel() { if(queue) { queue->cancel(this); - if (queue->canAutoDelete()) { + if (queue->canAutoDelete() && !queue->hasExclusiveOwner()) { parent->getSession().getBroker().getQueues().destroyIf( queue->getName(), boost::bind(boost::mem_fn(&Queue::canAutoDelete), queue)); -- cgit v1.2.1