Remove now redundant field from InitialHandler

This commit is contained in:
md_5 2013-05-25 17:22:43 +10:00
parent 97338cbfad
commit 538beb33a6

View File

@ -62,7 +62,6 @@ public class InitialHandler extends PacketHandler implements PendingConnection
private List<PacketFAPluginMessage> loginMessages = new ArrayList<>(); private List<PacketFAPluginMessage> loginMessages = new ArrayList<>();
private State thisState = State.HANDSHAKE; private State thisState = State.HANDSHAKE;
private SecretKey sharedKey; private SecretKey sharedKey;
private boolean disconnected;
private static final PacketFAPluginMessage forgeMods = new PacketFAPluginMessage( "FML", new byte[] private static final PacketFAPluginMessage forgeMods = new PacketFAPluginMessage( "FML", new byte[]
{ {
0, 0, 0, 0, 0, 2 0, 0, 0, 0, 0, 2
@ -218,7 +217,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
{ {
disconnect( result.getCancelReason() ); disconnect( result.getCancelReason() );
} }
if ( disconnected ) if ( ch.isClosed() )
{ {
return; return;
} }
@ -266,7 +265,6 @@ public class InitialHandler extends PacketHandler implements PendingConnection
{ {
ch.write( new PacketFFKick( reason ) ); ch.write( new PacketFFKick( reason ) );
ch.close(); ch.close();
disconnected = true;
} }
} }