Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move setHandler UpstreamBridge into the PostLoginEvent callback #3758

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Outfluencer
Copy link
Collaborator

@Outfluencer Outfluencer commented Oct 26, 2024

also change a little check for loginpayloads sendData method
it should only be possible to use this method while in login phase.

I moved the setHandler down because if in the PostLoginEvent a method is invoked that utilizeses login api. the packets will be handled in the UpstreamBridge and not in the initial handler, so the api will not function as expected

also change a little check for loginpayloads
it should only be possible to use this method while in login phase.
@Outfluencer
Copy link
Collaborator Author

in my case i try to use the sendData method of the pendingConnection in the post login event for latest client version, it should work as the connection is in login state. But the LoginPayloadResponse is handled in the upstream bridge, thats why it doesnt work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant