diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/qpid/broker/SemanticState.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp index e0e4315d03..7339150642 100644 --- a/cpp/src/qpid/broker/SemanticState.cpp +++ b/cpp/src/qpid/broker/SemanticState.cpp @@ -248,6 +248,10 @@ SemanticState::ConsumerImpl::ConsumerImpl(SemanticState* _parent, bool SemanticState::ConsumerImpl::deliver(QueuedMessage& msg) { + if (!parent->getSession().isAttached()) { + return false; + } + if (nolocal && &parent->getSession().getConnection() == msg.payload->getPublisher()) { return false; |