From 6b805faf0f178715cfa7f302eeb423427bb2481c Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 11 Jun 2017 14:30:09 -0500 Subject: [PATCH] Reorder a few things in the next_song method too ensure we set the song --- cogs/music.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/music.py b/cogs/music.py index 6713982..11f7845 100644 --- a/cogs/music.py +++ b/cogs/music.py @@ -114,8 +114,8 @@ class VoiceState: try: dj = self.djs.popleft() except IndexError: - song = None self.dj = None + self.current = None else: song = await dj.get_next_entry() # Add an extra check here in case in the very short period of time possible, someone has queued a @@ -133,7 +133,7 @@ class VoiceState: else: song.requester = dj.member self.dj = dj - self.current = current + self.current = song class Music: