Fix LoginEvent firing after PreLoginEvent is cancelled

This commit is contained in:
mrapple 2014-08-19 16:36:43 -05:00 committed by Thinkofdeath
parent e573f7b89c
commit 41ccf3f9d3

View File

@ -277,6 +277,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
if ( result.isCancelled() ) if ( result.isCancelled() )
{ {
disconnect( result.getCancelReason() ); disconnect( result.getCancelReason() );
return;
} }
if ( ch.isClosed() ) if ( ch.isClosed() )
{ {