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; boolean performACK = lastConsumedAsDelivered;
try { try {
if (largeMessageDeliverer != null) { LargeMessageDeliverer pendingLargeMessageDeliverer = largeMessageDeliverer;
largeMessageDeliverer.finish(); if (pendingLargeMessageDeliverer != null) {
pendingLargeMessageDeliverer.finish();
} }
} catch (Throwable e) { } catch (Throwable e) {
ActiveMQServerLogger.LOGGER.errorResttingLargeMessage(e, largeMessageDeliverer); ActiveMQServerLogger.LOGGER.errorResttingLargeMessage(e, largeMessageDeliverer);