Improved code

This commit is contained in:
RaphiMC 2024-07-25 15:06:27 +02:00
parent 193ce90df3
commit a2e16b6d4e
No known key found for this signature in database
GPG key ID: 0F6BB0657A03AC94

View file

@ -44,7 +44,7 @@ public class LegacyPassthroughInitialHandler extends SimpleChannelInboundHandler
final Supplier<ChannelHandler> handlerSupplier = () -> ViaProxy.EVENT_MANAGER.call(new Client2ProxyHandlerCreationEvent(new PassthroughClient2ProxyHandler(), true)).getHandler();
final PassthroughClient2ProxyChannelInitializer channelInitializer = new PassthroughClient2ProxyChannelInitializer(handlerSupplier);
channelInitializer.initChannel(ctx.channel());
ctx.channel().pipeline().addLast(channelInitializer);
ctx.channel().pipeline().fireChannelActive();
}