From 52fbceec546dd1579c5718f246b2c4a568fddfd9 Mon Sep 17 00:00:00 2001 From: Jonas Konrad Date: Tue, 18 Feb 2014 17:08:04 +0100 Subject: [PATCH] Fix client disconnects when a server goes down - #886 --- .../java/net/md_5/bungee/connection/DownstreamBridge.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java index 5b1f0453..cd573bab 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java @@ -43,6 +43,12 @@ public class DownstreamBridge extends PacketHandler @Override public void exception(Throwable t) throws Exception { + if ( server.isObsolete() ) + { + // do not perform any actions if the user has already moved + return; + } + ServerInfo def = bungee.getServerInfo( con.getPendingConnection().getListener().getFallbackServer() ); if ( server.getInfo() != def ) {