Lets just silence java.util.NoSuchElementException: decrypt - PEOPLE DON'T UNDERSTAND ITS NOT AN ERROR.

This commit is contained in:
md_5 2013-08-02 19:11:16 +10:00
parent 4c4cdd51a1
commit 4c96880580

View File

@ -309,7 +309,8 @@ public class InitialHandler extends PacketHandler implements PendingConnection
@Override @Override
public void run() public void run()
{ {
if ( ch.getHandle().isActive() )
{
unsafe().sendPacket( new PacketFCEncryptionResponse( new byte[ 0 ], new byte[ 0 ] ) ); unsafe().sendPacket( new PacketFCEncryptionResponse( new byte[ 0 ], new byte[ 0 ] ) );
try try
{ {
@ -320,6 +321,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
disconnect( "Cipher error: " + Util.exception( ex ) ); disconnect( "Cipher error: " + Util.exception( ex ) );
} }
} }
}
} ); } );
} }
}; };