mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2026-02-04 15:05:54 +08:00
[fix] @Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
// super.exceptionCaught(ctx, cause);
Channel channel = ctx.channel();
//……
if (channel.isActive()) ctx.close();
}
This commit is contained in:
@@ -117,4 +117,11 @@ public class NettyServerHandler extends SimpleChannelInboundHandler<NettyProxyMs
|
||||
}
|
||||
|
||||
}
|
||||
@Override
|
||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
||||
// super.exceptionCaught(ctx, cause);
|
||||
Channel channel = ctx.channel();
|
||||
//……
|
||||
if (channel.isActive()) ctx.close();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user