mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@675104 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f1e3a14e83
commit
6dc44747b4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue