Remove cleanup taken care of by play()

This commit is contained in:
Stein Magnus Jodal 2010-10-19 12:23:05 +02:00
parent 5cdfbce122
commit 0d613418e6

View File

@ -311,11 +311,9 @@ class BasePlaybackController(object):
return
original_cp_track = self.current_cp_track
if self.cp_track_at_eot:
self.play(self.cp_track_at_eot)
if self.random and self.current_cp_track in self._shuffled:
self._shuffled.remove(self.current_cp_track)
else:
self.stop()
self.current_cp_track = None
@ -351,9 +349,6 @@ class BasePlaybackController(object):
self.stop()
self.current_cp_track = None
if self.random and self.current_cp_track in self._shuffled:
self._shuffled.remove(self.current_cp_track)
def pause(self):
"""Pause playback."""
if self.state == self.PLAYING and self._pause():