fireExceptionCaught(channel, t);
}
writtenBytes += localWrittenBytes;
channel.currentWriteIndex += localWrittenBytes;
if (channel.currentWriteIndex == a.writerIndex()) {
channel.currentWriteEvent.getFuture().setSuccess();
channel.currentWriteEvent = null;
} else if (localWrittenBytes == 0 || writtenBytes < maxWrittenBytes) {
addOpWrite = true;
break;