ARTEMIS-1186 Consumer.receive hangs if http acceptor with non-zero batch-delay is configured

This commit is contained in:
Tomas Hofman 2017-05-29 12:00:32 +02:00 committed by Clebert Suconic
parent 0f40671a3d
commit bf814d4864
1 changed files with 6 additions and 6 deletions

View File

@ -340,14 +340,14 @@ public class NettyAcceptor extends AbstractAcceptor {
notificationService.sendNotification(notification);
}
if (batchDelay > 0) {
flusher = new BatchFlusher();
batchFlusherFuture = scheduledThreadPool.scheduleWithFixedDelay(flusher, batchDelay, batchDelay, TimeUnit.MILLISECONDS);
}
ActiveMQServerLogger.LOGGER.startedAcceptor(host, port, protocolsString);
}
if (batchDelay > 0) {
flusher = new BatchFlusher();
batchFlusherFuture = scheduledThreadPool.scheduleWithFixedDelay(flusher, batchDelay, batchDelay, TimeUnit.MILLISECONDS);
}
}
@Override