1
0
Fork 0
mirror of synced 2024-06-02 18:54:33 +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: try:
dj = self.djs.popleft() dj = self.djs.popleft()
except IndexError: except IndexError:
song = None
self.dj = None self.dj = None
self.current = None
else: else:
song = await dj.get_next_entry() 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 # 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: else:
song.requester = dj.member song.requester = dj.member
self.dj = dj self.dj = dj
self.current = current self.current = song
class Music: class Music: