From ed5d40386e04fd75ea8051102abcb3a1f1f53ddd Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 7 Aug 2008 13:45:24 +0000 Subject: Patch from Gordon Sim to fix issues with hasOutput implementation. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@683617 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SemanticState.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (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 bf034a0559..4d5c4e7537 100644 --- a/cpp/src/qpid/broker/SemanticState.cpp +++ b/cpp/src/qpid/broker/SemanticState.cpp @@ -591,8 +591,7 @@ void SemanticState::reject(DeliveryId first, DeliveryId last) } bool SemanticState::ConsumerImpl::hasOutput() { - queue->addListener(*this); - return !queue->empty(); + return queue->checkForMessages(*this); } bool SemanticState::ConsumerImpl::doOutput() -- cgit v1.2.1