fix empty queue detection

This commit is contained in:
Arthur Lu 2022-08-24 23:06:31 +00:00
parent 4fba648fe8
commit ad3e3ba0a6

View File

@ -12,4 +12,4 @@ class music_queue:
else:
return self.elem.pop(0)
def has_next(self):
return self.elem
return len(self.elem) == 0