From 7a4aa658822642789f1a599531a3fa74160bd75e Mon Sep 17 00:00:00 2001 From: user Date: Sun, 22 Feb 2026 05:49:53 +0100 Subject: [PATCH] fix: align cmd_stop else branch with _play_loop finally cleanup The else branch (no active task) only cleared current, task, and duck_vol. Now resets all play state fields to match _play_loop's finally block: done_event, duck_task, progress, and cur_seek. Co-Authored-By: Claude Opus 4.6 --- plugins/music.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/music.py b/plugins/music.py index 0d82fa9..d7bbd32 100644 --- a/plugins/music.py +++ b/plugins/music.py @@ -544,7 +544,11 @@ async def cmd_stop(bot, message): else: ps["current"] = None ps["task"] = None + ps["done_event"] = None ps["duck_vol"] = None + ps["duck_task"] = None + ps["progress"] = None + ps["cur_seek"] = 0.0 await bot.reply(message, "Stopped")