Dont need to force use of eventloop anymore
This commit is contained in:
parent
be29799f5a
commit
52b3c6b77c
@ -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 ) );
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user