git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@675104 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-07-09 06:35:00 +00:00
parent f1e3a14e83
commit 6dc44747b4
1 changed files with 2 additions and 2 deletions

View File

@ -1109,12 +1109,12 @@ public class Queue extends BaseDestination implements Task {
MessageReference node = messages.next();
node.incrementReferenceCount();
messages.remove();
QueueMessageReference ref = createMessageReference(node.getMessage());
if (!broker.isExpired(node)) {
QueueMessageReference ref = createMessageReference(node.getMessage());
result.add(ref);
count++;
} else {
messageExpired(createConnectionContext(), node);
messageExpired(createConnectionContext(), ref);
}
}
} finally {