AmandaDiscord / Volcano

A light-weight LavaLink compatible replacement
MIT License
71 stars 15 forks source link

Volcano seems to randomly shutdown players #12

Closed Yaikava closed 2 years ago

Yaikava commented 2 years ago

Volcano shutdowns my player after some time consistently. (Music is still playing at the time when it happens.) image

PapiOphidian commented 2 years ago

This seems to be because of connections constantly being created. Possibly due to connection being lost or your code calls connect. It's a bit strange that it's not saying that there was a disconnect which leads me to believe your code is trying to connect multiple times which should not happen. Connect should only be called once unless the node is completely disconnected.

In the event that this is connection instability and your connection to the node is constantly being lost, you should be using the resume feature by sending a resumeKey and a resumeTimeout property in your connection open payload.

Yaikava commented 2 years ago

The reconnecting was done by me restarting my bot. It would not behave like that normally. Also when I connect to "normal" lavalink it works fine. Will try to get resuming to work.

Yaikava commented 2 years ago

I thought that this means a problem with the server? Am I wrong? image

PapiOphidian commented 2 years ago

That is not a problem with the server. That message is only displayed when a connection is closed for any reason. Like I mentioned, if you're facing connection issues, you should be using the resume feature. You should read lavalink's docs for more info on that.

Yaikava commented 2 years ago

I see, will look into it. Sorry for bothering you.