Fixed unnecessary exception notification on AsynchronousCloseException
This commit is contained in:
parent
ec8f441ea6
commit
ea784b00b5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user