Author: norman
Date: Thu Jun 10 08:07:09 2010
New Revision: 953240
URL: http://svn.apache.org/viewvc?rev=953240&view=rev
Log:
Call the next handler in the chain after adding channel to channelgroup
(JAMES-1014)
Modified:
james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/ChannelGroupHandler.java
Modified:
james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/ChannelGroupHandler.java
URL:
http://svn.apache.org/viewvc/james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/ChannelGroupHandler.java?rev=953240&r1=953239&r2=953240&view=diff
==============================================================================
---
james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/ChannelGroupHandler.java
(original)
+++
james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/ChannelGroupHandler.java
Thu Jun 10 08:07:09 2010
@@ -35,11 +35,15 @@ public final class ChannelGroupHandler e
public ChannelGroupHandler(ChannelGroup channels) {
this.channels = channels;
}
-
- public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) {
+
+ @Override
+ public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e)
throws Exception{
// Add all open channels to the global group so that they are
// closed on shutdown.
channels.add(e.getChannel());
+
+ // call the next handler in the chain
+ super.channelOpen(ctx, e);
}
}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]