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

initialize messageCounter to 2 instead of verifying later #1156

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

wadey
Copy link
Member

@wadey wadey commented Jun 4, 2024

Clean up the messageCounter checks added in #1154. Instead of checking that messageCounter is still at 2, just initialize it to 2 and only increment for non-handshake messages. Handshake packets will always be packets 1 and 2.

Clean up the messageCounter checks added in #1154. Instead of checking that
messageCounter is still at 2, just initialize it to 2 and only increment for
non-handshake messages. Handshake packets will always be packets 1 and 2.
@wadey wadey added this to the v1.9.3 milestone Jun 4, 2024
@wadey wadey merged commit 4c066d8 into master Jun 6, 2024
8 checks passed
@wadey wadey deleted the better-messagecounter-fix branch June 6, 2024 17:03
wadey added a commit that referenced this pull request Jun 6, 2024
- Initialize messageCounter to 2 instead of verifying later. (#1156)
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.

None yet

2 participants