From a287a10bcc41f778f60b8fae071c64065b49d93c Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 13 Feb 2019 17:38:58 +0100 Subject: [PATCH] Propagate a MusicStopEvent upon playback stop even when the context of the current track is not available --- platypush/backend/music/mopidy.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/platypush/backend/music/mopidy.py b/platypush/backend/music/mopidy.py index a6233cc2b..cd8e124e0 100644 --- a/platypush/backend/music/mopidy.py +++ b/platypush/backend/music/mopidy.py @@ -138,8 +138,6 @@ class MusicMopidyBackend(Backend): and msg.get('new_state') == 'stopped'): status['state'] = 'stop' track = self._parse_track(track) - if not track: - return self.bus.post(MusicStopEvent(status=status, track=track)) elif event == 'track_playback_started': track = self._parse_track(track)