From 37ed331515cbab7779270a73c12bccf5893b6aaa Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 26 Feb 2014 21:28:04 +1100 Subject: [PATCH] Ensure user's client and server component are both in the same event loop. Probably closes #893 --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index d12dad62..52418d0d 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -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() );