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,17 +310,10 @@ public class InitialHandler extends PacketHandler implements PendingConnection
} }
thisState = InitialHandler.State.LOGIN; thisState = InitialHandler.State.LOGIN;
ch.getHandle().eventLoop().execute( new Runnable()
{
@Override
public void run()
{
unsafe().sendPacket( new PacketFCEncryptionResponse( new byte[ 0 ], new byte[ 0 ] ) ); unsafe().sendPacket( new PacketFCEncryptionResponse( new byte[ 0 ], new byte[ 0 ] ) );
BufferedBlockCipher encrypt = EncryptionUtil.getCipher( true, sharedKey ); BufferedBlockCipher encrypt = EncryptionUtil.getCipher( true, sharedKey );
ch.addBefore( PipelineUtils.DECRYPT_HANDLER, PipelineUtils.ENCRYPT_HANDLER, new CipherEncoder( encrypt ) ); ch.addBefore( PipelineUtils.DECRYPT_HANDLER, PipelineUtils.ENCRYPT_HANDLER, new CipherEncoder( encrypt ) );
} }
} );
}
}; };
// fire login event // fire login event