From f5af4c11645bb1ff3aa993fb9c3a29c4a01b40c3 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 20 May 2026 17:19:11 +0200 Subject: Fix zombie voice client after gateway restart - play_tts: run is_voice_client_alive() check regardless of is_playing() state. After a gateway restart, is_playing() can return True on a dead client, which previously bypassed the stale-detection guard (was: 'if is_connected and not is_playing') --- cogs/vclogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/vclogs.py b/cogs/vclogs.py index 01a428d..35826d4 100644 --- a/cogs/vclogs.py +++ b/cogs/vclogs.py @@ -129,7 +129,7 @@ class VcLogs(commands.Cog): is_connected = voice_status[1] if voice_status else False is_playing = voice_status[2] if voice_status else False - if is_connected and not is_playing: + if is_connected: from cogs.voice import is_voice_client_alive if not is_voice_client_alive(voice_client, channel.guild): logger.warning("Stale voice client in play_tts, reconnecting") -- cgit v1.2.3