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

Close previous UDP voice sessions on Continue #358

Merged
merged 1 commit into from Dec 4, 2022

Conversation

1lann
Copy link
Contributor

@1lann 1lann commented Dec 4, 2022

Previously, stale UDP voice sessions (i.e. when the region changes or the voice server fails over and a server change notification is sent via the websocket) were never closed, this could leave callers hanging perpetually unless they set a Read/Write timeout. However that's kind of an annoying quirk that can be worked around by just closing the UDP session when appropriate. I'm not sure if Continue is the right place to close the connection, but it works for me lol. There is probably a more correct location to close the connection? I'm just making this PR to give you an idea I guess.

@diamondburned
Copy link
Owner

I have no clue what this is really doing, but if it works, it works.

LGTM.

@diamondburned diamondburned merged commit 4db60bc into diamondburned:v3 Dec 4, 2022
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