mirror of https://github.com/apache/activemq.git
notify listener after the enqueue
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372844 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2f944a19e3
commit
6a70920b20
|
@ -716,10 +716,10 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
|
|||
listener.onMessage(message);
|
||||
afterMessageIsConsumed(md, false);
|
||||
} else {
|
||||
unconsumedMessages.enqueue(md);
|
||||
if (availableListener != null) {
|
||||
availableListener.onMessageAvailable(this);
|
||||
}
|
||||
unconsumedMessages.enqueue(md);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue