From dd3194c314a5572af972e62c1b56cdc8befa22bc Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 17 Feb 2017 22:11:19 -0600 Subject: [PATCH] Added an additional step, to ensure a state's entries are cleared even if it doesn't exist. Lol just that comment shows how shitty discord's voice is. --- cogs/music.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cogs/music.py b/cogs/music.py index 8f3b19f..c5c41ae 100644 --- a/cogs/music.py +++ b/cogs/music.py @@ -525,8 +525,9 @@ class Music: # Stop playing whatever song is playing. if state.is_playing(): - player = state.player - player.stop() + state.player.stop() + + state.songs.clear() # This will stop cancel the audio event we're using to loop through the queue # Then erase the voice_state entirely, and disconnect from the channel