Skip to content

Commit

Permalink
[ISSUE #3850] ignore socket exception when client destroy already (#3906
Browse files Browse the repository at this point in the history
)

* if client destroy already, ignore socket exception.

* remove the exception's judgement

* remove unuseful import
  • Loading branch information
horizonzy authored Sep 30, 2020
1 parent 787ea47 commit f6c6a9f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ public void run() {
udpSocket.send(new DatagramPacket(ack.getBytes(UTF_8), ack.getBytes(UTF_8).length,
packet.getSocketAddress()));
} catch (Exception e) {
if (closed) {
return;
}
NAMING_LOGGER.error("[NA] error while receiving push data", e);
}
}
Expand Down

0 comments on commit f6c6a9f

Please sign in to comment.