Lets just silence java.util.NoSuchElementException: decrypt - PEOPLE DON'T UNDERSTAND ITS NOT AN ERROR.
This commit is contained in:
		| @@ -309,15 +309,17 @@ 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 ] ) ); |  | ||||||
|                         try |  | ||||||
|                         { |                         { | ||||||
|                             Cipher encrypt = EncryptionUtil.getCipher( Cipher.ENCRYPT_MODE, sharedKey ); |                             unsafe().sendPacket( new PacketFCEncryptionResponse( new byte[ 0 ], new byte[ 0 ] ) ); | ||||||
|                             ch.addBefore( PipelineUtils.DECRYPT_HANDLER, PipelineUtils.ENCRYPT_HANDLER, new CipherEncoder( encrypt ) ); |                             try | ||||||
|                         } catch ( GeneralSecurityException ex ) |                             { | ||||||
|                         { |                                 Cipher encrypt = EncryptionUtil.getCipher( Cipher.ENCRYPT_MODE, sharedKey ); | ||||||
|                             disconnect( "Cipher error: " + Util.exception( ex ) ); |                                 ch.addBefore( PipelineUtils.DECRYPT_HANDLER, PipelineUtils.ENCRYPT_HANDLER, new CipherEncoder( encrypt ) ); | ||||||
|  |                             } catch ( GeneralSecurityException ex ) | ||||||
|  |                             { | ||||||
|  |                                 disconnect( "Cipher error: " + Util.exception( ex ) ); | ||||||
|  |                             } | ||||||
|                         } |                         } | ||||||
|                     } |                     } | ||||||
|                 } ); |                 } ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 md_5
					md_5