Fixed a bug where an invalid upstream channel state event goes downstream

This commit is contained in:
Trustin Lee 2009-09-03 04:34:22 +00:00
parent b9c8675cf1
commit edd056d3de
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ public class SimpleChannelHandler implements ChannelUpstreamHandler, ChannelDown
channelInterestChanged(ctx, evt);
break;
default:
ctx.sendDownstream(e);
ctx.sendUpstream(e);
}
} else if (e instanceof ExceptionEvent) {
exceptionCaught(ctx, (ExceptionEvent) e);

View File

@ -116,7 +116,7 @@ public class SimpleChannelUpstreamHandler implements ChannelUpstreamHandler {
channelInterestChanged(ctx, evt);
break;
default:
ctx.sendDownstream(e);
ctx.sendUpstream(e);
}
} else if (e instanceof ExceptionEvent) {
exceptionCaught(ctx, (ExceptionEvent) e);