core: Address review comments: remove unnecessary call to get_current_tl_track()

This commit is contained in:
jcass 2016-01-04 00:05:10 +02:00
parent 4e63e4280c
commit 31ec804d7e

View File

@ -217,8 +217,7 @@ class PlaybackController(object):
self.core.tracklist._mark_playing(tl_track)
self.core.history._add_track(tl_track.track)
else:
self.core.tracklist._mark_unplayable(
self.get_current_tl_track())
self.core.tracklist._mark_unplayable(tl_track)
if on_error_step == 1:
# TODO: can cause an endless loop for single track
# repeat.