diff options
| author | Alan Conway <aconway@apache.org> | 2008-08-07 13:45:24 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-08-07 13:45:24 +0000 |
| commit | ed5d40386e04fd75ea8051102abcb3a1f1f53ddd (patch) | |
| tree | 906434b6856197020bd711bedfd0c634134b66cd /cpp/src/qpid/broker/SemanticState.cpp | |
| parent | 469dbf73971b247af0659f8dfdf1b15c6724d11a (diff) | |
| download | qpid-python-ed5d40386e04fd75ea8051102abcb3a1f1f53ddd.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpid/broker/SemanticState.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/SemanticState.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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() |
