mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-14 19:15:08 -05:00
Improved code
This commit is contained in:
parent
193ce90df3
commit
a2e16b6d4e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue