Fix client disconnects when a server goes down - #886
This commit is contained in:
parent
e609145a0d
commit
52fbceec54
@ -43,6 +43,12 @@ public class DownstreamBridge extends PacketHandler
|
|||||||
@Override
|
@Override
|
||||||
public void exception(Throwable t) throws Exception
|
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() );
|
ServerInfo def = bungee.getServerInfo( con.getPendingConnection().getListener().getFallbackServer() );
|
||||||
if ( server.getInfo() != def )
|
if ( server.getInfo() != def )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user