From 538beb33a65aec460a5d979a1ca0dc5d9caebe9e Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 25 May 2013 17:22:43 +1000 Subject: [PATCH] Remove now redundant field from InitialHandler --- .../main/java/net/md_5/bungee/connection/InitialHandler.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java index 6ddac09f..368efffd 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java @@ -62,7 +62,6 @@ public class InitialHandler extends PacketHandler implements PendingConnection private List loginMessages = new ArrayList<>(); private State thisState = State.HANDSHAKE; private SecretKey sharedKey; - private boolean disconnected; private static final PacketFAPluginMessage forgeMods = new PacketFAPluginMessage( "FML", new byte[] { 0, 0, 0, 0, 0, 2 @@ -218,7 +217,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection { disconnect( result.getCancelReason() ); } - if ( disconnected ) + if ( ch.isClosed() ) { return; } @@ -266,7 +265,6 @@ public class InitialHandler extends PacketHandler implements PendingConnection { ch.write( new PacketFFKick( reason ) ); ch.close(); - disconnected = true; } }