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