fix bug in empty detection
This commit is contained in:
parent
ad3e3ba0a6
commit
9bfc9cdc05
@ -12,4 +12,4 @@ class music_queue:
|
|||||||
else:
|
else:
|
||||||
return self.elem.pop(0)
|
return self.elem.pop(0)
|
||||||
def has_next(self):
|
def has_next(self):
|
||||||
return len(self.elem) == 0
|
return len(self.elem) != 0
|
Loading…
Reference in New Issue
Block a user