Dont need to force use of eventloop anymore

This commit is contained in:
md_5 2013-07-05 09:32:20 +10:00
parent be29799f5a
commit 52b3c6b77c

View File

@ -310,16 +310,9 @@ public class InitialHandler extends PacketHandler implements PendingConnection
} }
thisState = InitialHandler.State.LOGIN; thisState = InitialHandler.State.LOGIN;
ch.getHandle().eventLoop().execute( new Runnable() unsafe().sendPacket( new PacketFCEncryptionResponse( new byte[ 0 ], new byte[ 0 ] ) );
{ BufferedBlockCipher encrypt = EncryptionUtil.getCipher( true, sharedKey );
@Override ch.addBefore( PipelineUtils.DECRYPT_HANDLER, PipelineUtils.ENCRYPT_HANDLER, new CipherEncoder( encrypt ) );
public void run()
{
unsafe().sendPacket( new PacketFCEncryptionResponse( new byte[ 0 ], new byte[ 0 ] ) );
BufferedBlockCipher encrypt = EncryptionUtil.getCipher( true, sharedKey );
ch.addBefore( PipelineUtils.DECRYPT_HANDLER, PipelineUtils.ENCRYPT_HANDLER, new CipherEncoder( encrypt ) );
}
} );
} }
}; };