Removed OP_WRITE event which is fired when a connection is closed - totally unnecessary not that we use different write prevention mechanism

This commit is contained in:
Trustin Lee 2008-12-09 00:59:48 +00:00
parent 6329cbe940
commit 891821788a
2 changed files with 0 additions and 9 deletions

View File

@ -605,10 +605,6 @@ class NioWorker implements Runnable {
if (channel.setClosed()) {
future.setSuccess();
if (connected) {
if (channel.getRawInterestOps() != Channel.OP_WRITE) {
channel.setRawInterestOpsNow(Channel.OP_WRITE);
fireChannelInterestChanged(channel, Channel.OP_WRITE);
}
fireChannelDisconnected(channel);
}
if (bound) {

View File

@ -173,11 +173,6 @@ class OioWorker implements Runnable {
if (workerThread != null && currentThread != workerThread) {
workerThread.interrupt();
}
if (channel.getInterestOps() != Channel.OP_WRITE) {
channel.setInterestOpsNow(Channel.OP_WRITE);
fireChannelInterestChanged(channel, Channel.OP_WRITE);
}
fireChannelDisconnected(channel);
}
if (bound) {