141142143144145146147148149150151
c.pipeline().addLast(group, ch); } }); } else { sb.childHandler(sh); sb.handler(new ChannelHandlerAdapter() { @Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { cause.printStackTrace(); } });