Remove repeated conditional judgments. (#2068)

pull/2069/head
yx9o 3 years ago committed by GitHub
parent eae5d0a470
commit 1bbba85dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,9 +37,7 @@ public final class RelayHandler extends ChannelInboundHandlerAdapter {
@Override
public void channelInactive(ChannelHandlerContext ctx) {
if (relayChannel.isActive()) {
if (relayChannel.isActive()) {
relayChannel.writeAndFlush(Unpooled.EMPTY_BUFFER).addListener(ChannelFutureListener.CLOSE);
}
relayChannel.writeAndFlush(Unpooled.EMPTY_BUFFER).addListener(ChannelFutureListener.CLOSE);
}
}

Loading…
Cancel
Save