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

Fixed disconnect reason check #838

Closed
wants to merge 1 commit into from
Closed

Conversation

gvitali
Copy link

@gvitali gvitali commented Apr 4, 2022

Description

To avoid a runtime error when the reason ID is equal to a length of discReasonToString (runtime error: index out of range [17] with length 17)

Rationale

It crashes when it comes with reason ID = 17

Example

runtime error: index out of range [17] with length 17

Changes

Changed a comparison operator from < to <=

To avoid a runtime error when the reason ID is equal to a length of discReasonToString (`runtime error: index out of range [17] with length 17`)
@Lippertt Lippertt linked an issue Apr 6, 2022 that may be closed by this pull request
Closed
@zzzckck
Copy link
Collaborator

zzzckck commented Jan 9, 2024

already included.

@zzzckck zzzckck closed this Jan 9, 2024
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.

$$$
2 participants