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:
Trustin Lee 2010-01-09 08:54:21 +00:00
parent 9f12398073
commit 1142a1aa06

View File

@ -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);