Validate state before handling the end of track event

This commit is contained in:
Stein Magnus Jodal 2010-08-18 12:36:17 +02:00
parent 785ef04e7b
commit 4cf041119b

View File

@ -307,6 +307,9 @@ class BasePlaybackController(object):
Typically called by :class:`mopidy.process.CoreProcess` after a message
from a library thread is received.
"""
if self.state == self.STOPPED:
return
original_cp_track = self.current_cp_track
if self.cp_track_at_eot:
self.play(self.cp_track_at_eot)