Make next() stop playing when next_track is None
This commit is contained in:
parent
acbb2bd7bf
commit
7e9c0ada05
@ -447,6 +447,8 @@ class BasePlaybackController(object):
|
||||
if self.next_track is not None and self._next(self.next_track):
|
||||
self.current_track = self.next_track
|
||||
self.state = self.PLAYING
|
||||
elif self.next_track is None:
|
||||
self.stop()
|
||||
|
||||
def _next(self, track):
|
||||
return self._play(track)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user