Fixed unnecessary exception notification on AsynchronousCloseException

This commit is contained in:
Trustin Lee 2008-08-28 12:15:00 +00:00
parent ec8f441ea6
commit ea784b00b5

View File

@ -25,6 +25,7 @@ package org.jboss.netty.channel.socket.nio;
import static org.jboss.netty.channel.Channels.*;
import java.io.IOException;
import java.nio.channels.AsynchronousCloseException;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.ScatteringByteChannel;
import java.nio.channels.SelectionKey;
@ -238,6 +239,8 @@ class NioWorker implements Runnable {
}
}
failure = false;
} catch (AsynchronousCloseException e) {
// Can happen, and doesn't need a user attention.
} catch (Throwable t) {
fireExceptionCaught(channel, t);
}