1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Reorder a few things in the next_song method too ensure we set the song

This commit is contained in:
Phxntxm 2017-06-11 14:30:09 -05:00
parent 0f2f9b628a
commit 6b805faf0f

View file

@ -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: