Ensure user's client and server component are both in the same event loop. Probably closes #893

This commit is contained in:
md_5 2014-02-26 21:28:04 +11:00
parent 38f12840ca
commit 37ed331515

View File

@ -260,7 +260,7 @@ public final class UserConnection implements ProxiedPlayer
};
Bootstrap b = new Bootstrap()
.channel( NioSocketChannel.class )
.group( BungeeCord.getInstance().eventLoops )
.group( ch.getHandle().eventLoop() )
.handler( initializer )
.option( ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000 ) // TODO: Configurable
.remoteAddress( target.getAddress() );