mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-5182 - apply patch from colin mondesir with thanks
This commit is contained in:
parent
140ce1bc8f
commit
b5581166be
|
@ -65,7 +65,7 @@ public class AjaxListener implements MessageAvailableListener {
|
|||
Message message = consumer.receive(10);
|
||||
LOG.debug("message is " + message);
|
||||
if (message != null) {
|
||||
if (!continuation.isResumed() && !continuation.isInitial()) {
|
||||
if (!continuation.isResumed()) {
|
||||
LOG.debug("Resuming suspended continuation {}", continuation);
|
||||
continuation.setAttribute("undelivered_message", new UndeliveredAjaxMessage(message, consumer));
|
||||
continuation.resume();
|
||||
|
|
Loading…
Reference in New Issue