return;
}
// Update the write counter and notify flush futures only when the handler is called outside of
// unsafe().flushNow() because flushNow() will do that for us.
ChannelFlushPromiseNotifier notifier = channel.flushFutureNotifier;
notifier.increaseWriteCounter(writtenBytes);
notifier.notifyFlushFutures();
// Stop flushing if disconnected.
if (!channel.isActive()) {
return;
}