diff --git a/pyproject.toml b/pyproject.toml index 51722e9f..d7b6ab5c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [tool.poetry] name = "royalnet" - version = "5.1.3" + version = "5.1.4" description = "A multipurpose bot and web framework" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalnet/serf/discord/discordserf.py b/royalnet/serf/discord/discordserf.py index 71e25466..91b8f5fe 100644 --- a/royalnet/serf/discord/discordserf.py +++ b/royalnet/serf/discord/discordserf.py @@ -238,6 +238,8 @@ class DiscordSerf(Serf): def find_voice_player(self, guild: "discord.Guild") -> Optional[VoicePlayer]: for voice_player in self.voice_players: + if not voice_player.voice_client.is_connected(): + continue if voice_player.voice_client.guild == guild: return voice_player else: diff --git a/royalnet/version.py b/royalnet/version.py index 70cfc919..089f9b96 100644 --- a/royalnet/version.py +++ b/royalnet/version.py @@ -1 +1 @@ -semantic = "5.1.3" +semantic = "5.1.4"