-
Notifications
You must be signed in to change notification settings - Fork 10
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
Migrate on disconnect #31
Conversation
f7ba809
to
4252855
Compare
Pls rebase again |
I'm currently investigating a bug that seems to be related to this PR, where the WebSocket is blocked from reconnecting (Will rebase soon) |
4252855
to
ee12b48
Compare
I believe that something caused the |
Currently, this PR as well as Lavalink.kt more generally assumes that the state of a link is CONNECTED after voice data is sent to Lavalink. Should it not remain in CONNECTING until Lavalink notifies the client that it is connected to the voice gateway? |
From the kdoc:
I do realise that CONNECTED does not strictly mean "connected", but I think this could be improved as Lavalink does communicate when it is and isn't connected to the voice gateway. It could however be seen as a breaking change. |
I think I copied that from the og client, but yeah sure, sounds like a reasonable improvment |
- Rely on player state for CONNECTED state - Do not destroy player on disconnect - Improved debug logging in some places
Contains all changes from #30 and most of #28, on which this PR is built upon.
Adds a new option that is enabled by default: