* if client destroy already, ignore socket exception. * remove the exception's judgement * remove unuseful import
This commit is contained in:
parent
787ea47cfe
commit
f6c6a9f3b2
@ -107,6 +107,9 @@ public class PushReceiver implements Runnable, Closeable {
|
|||||||
udpSocket.send(new DatagramPacket(ack.getBytes(UTF_8), ack.getBytes(UTF_8).length,
|
udpSocket.send(new DatagramPacket(ack.getBytes(UTF_8), ack.getBytes(UTF_8).length,
|
||||||
packet.getSocketAddress()));
|
packet.getSocketAddress()));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
if (closed) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
NAMING_LOGGER.error("[NA] error while receiving push data", e);
|
NAMING_LOGGER.error("[NA] error while receiving push data", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user