mirror of https://github.com/apache/activemq.git
Fix so that we can get the messages.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@384255 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4aa503f4af
commit
5d9d499e66
|
@ -432,6 +432,7 @@ public class Queue implements Destination {
|
|||
for (Iterator iter = messages.iterator(); iter.hasNext();) {
|
||||
try {
|
||||
MessageReference r = (MessageReference) iter.next();
|
||||
r.incrementReferenceCount();
|
||||
try {
|
||||
Message m = r.getMessage();
|
||||
if (m != null) {
|
||||
|
|
Loading…
Reference in New Issue