This commit is contained in:
Clebert Suconic 2017-10-09 12:54:46 -04:00
commit 87dab340c4
1 changed files with 3 additions and 2 deletions

View File

@ -607,8 +607,9 @@ public class ServerConsumerImpl implements ServerConsumer, ReadyListener {
boolean performACK = lastConsumedAsDelivered;
try {
if (largeMessageDeliverer != null) {
largeMessageDeliverer.finish();
LargeMessageDeliverer pendingLargeMessageDeliverer = largeMessageDeliverer;
if (pendingLargeMessageDeliverer != null) {
pendingLargeMessageDeliverer.finish();
}
} catch (Throwable e) {
ActiveMQServerLogger.LOGGER.errorResttingLargeMessage(e, largeMessageDeliverer);