}
continue;
}
while(!sendQueue.isEmpty()) {
if (!isOpen()) return ;
UDPPacket packet = sendQueue.poll();
InetSocketAddress destination = packet.getAddress();
packet.getAsByteBuffer().position(0);
try {
listenChannel.send(packet.getAsByteBuffer(), destination);
} catch (IOException cause) {
if (!isOpen()) return ;
cause.printStackTrace();
}
}