continue;
}
Buffer buffer = currentSendPacket.getContent();
if (!buffer.hasRemaining() || write(currentSendPacket)) {
buffer.limit(currentSendPacket.limit);
buffer.position(currentSendPacket.position);
buffer.release();
final FuturePacket packet = currentSendPacket;
currentSendPacket = null;