Make next() stop playing when next_track is None

This commit is contained in:
Thomas Adamcik 2010-04-06 21:42:10 +02:00
parent acbb2bd7bf
commit 7e9c0ada05

View File

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