Packet packet = sendQueue.getPacket();
SendPacket packet = sendQueue.getPacket();
            public void run() {                while (sender == Thread.currentThread()) {                    Packet packet = sendQueue.getPacket();                    if (packet != null) {                        try {                            processPacket(packet);                        }catch (Exception e) {                            reportSendException(e, packet);                            close();                        }                    }                }            }