去掉重复代码

This commit is contained in:
jzdayz 2020-02-27 14:33:47 +08:00
parent fd5f0fe159
commit 1b9e1db351

View File

@ -317,8 +317,6 @@ public class PushService implements ApplicationContextAware, ApplicationListener
try { try {
packet = new DatagramPacket(dataBytes, dataBytes.length, client.socketAddr); packet = new DatagramPacket(dataBytes, dataBytes.length, client.socketAddr);
Receiver.AckEntry ackEntry = new Receiver.AckEntry(key, packet); Receiver.AckEntry ackEntry = new Receiver.AckEntry(key, packet);
ackEntry.data = data;
// we must store the key be fore send, otherwise there will be a chance the // we must store the key be fore send, otherwise there will be a chance the
// ack returns before we put in // ack returns before we put in
ackEntry.data = data; ackEntry.data = data;