Signed-off-by: Graham <gpe@openrs2.org>
master
Graham 2 years ago
parent 2abd1d7ea0
commit e2ceef0a32
  1. 8
      game/src/main/kotlin/org/openrs2/game/net/Rs2ChannelInitializer.kt

@ -18,15 +18,15 @@ import javax.inject.Singleton
public class Rs2ChannelInitializer @Inject constructor(
private val handlerProvider: Provider<LoginChannelHandler>,
@LoginUpstream
private val loginUpStreamProtocol: Protocol,
private val loginUpstreamProtocol: Protocol,
@LoginDownstream
private val loginDownStreamProtocol: Protocol
private val loginDownstreamProtocol: Protocol
) : ChannelInitializer<Channel>() {
override fun initChannel(ch: Channel) {
ch.pipeline().addLast(
IdleStateHandler(true, TIMEOUT_SECS, TIMEOUT_SECS, TIMEOUT_SECS, TimeUnit.SECONDS),
Rs2Decoder(loginUpStreamProtocol),
Rs2Encoder(loginDownStreamProtocol),
Rs2Decoder(loginUpstreamProtocol),
Rs2Encoder(loginDownstreamProtocol),
handlerProvider.get()
)
}

Loading…
Cancel
Save