// Then we start queue shutdown, start counting written messages (so that we don't keep sending messages
// indefinitely) and failing not completed entries.
shuttingDown = true;
- final long entries = currentQueue.startShutdown(ctx.channel());
+ final long entries = currentQueue.startShutdown();
LOG.debug("Cleared {} queue entries from channel {}", entries, ctx.channel());
// Finally, we schedule flush task that will take care of unflushed entries. We also cover the case,
rescheduleFlush();
} else {
close();
- if (currentQueue.finishShutdown()) {
+ if (currentQueue.finishShutdown(parent.getChannel())) {
LOG.debug("Channel {} shutdown complete", parent.getChannel());
} else {
LOG.trace("Channel {} current queue not completely flushed yet", parent.getChannel());