392393394395396397398399400401402
if (!closed) { if (listener != null) { boolean expired = message.isExpired(); messageDelivered(message, true, expired); if (!expired) { listener.onMessage(message.shallowCopy()); } } else { this.messageQueue.enqueue(message); }