diff --git a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java index fdc29b6a..26563db4 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java @@ -136,6 +136,11 @@ public class UpstreamBridge extends PacketHandler { if ( con.getServer() != null ) { + if ( con.getServer().getCh().isClosed() ) + { + return; + } + Protocol serverEncode = con.getServer().getCh().getEncodeProtocol(); // #3527: May still have old packets from client in game state when switching server to configuration state - discard those if ( packet.protocol != serverEncode )