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

fix: KCP session is closing while listener tries to input #30 #31

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

Banyc
Copy link
Contributor

@Banyc Banyc commented Jun 11, 2023

Fixed: #30

Previously, when the session is closing but not yet removed from the list, the listener might send input in that session. But that function call will hit a panic.

After this change, if that happens, the dying session will return an error to the listener instead of instantly panic.

@zonyitoo zonyitoo merged commit 89979a8 into Matrix-Zhang:master Jun 12, 2023
1 check passed
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.

Bug: panic on session's "input channel closed"
2 participants