mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-06 21:37:56 +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:
parent
05459f9a04
commit
20f3f9307c
@ -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();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user