Fixed a cosmetic problem in NioDatagramWorker.read() - In some platform, ClosedChannelException is raised on DatagramChannel.receive() depending on timing, and it's safe to ignore.
This commit is contained in:
parent
9f12398073
commit
1142a1aa06
@ -401,7 +401,7 @@ class NioDatagramWorker implements Runnable {
|
||||
// the channel is ready to receive.
|
||||
remoteAddress = nioChannel.receive(byteBuffer);
|
||||
failure = false;
|
||||
} catch (AsynchronousCloseException e) {
|
||||
} catch (ClosedChannelException e) {
|
||||
// Can happen, and does not need a user attention.
|
||||
} catch (Throwable t) {
|
||||
fireExceptionCaught(channel, t);
|
||||
|
Loading…
x
Reference in New Issue
Block a user