diff --git a/platypush/backend/music/mpd/__init__.py b/platypush/backend/music/mpd/__init__.py index 6da2edb5f..6797ba972 100644 --- a/platypush/backend/music/mpd/__init__.py +++ b/platypush/backend/music/mpd/__init__.py @@ -24,12 +24,12 @@ class MusicMpdBackend(Backend): def run(self): super().run() - plugin = get_plugin('music.mpd') last_state = None last_track = None last_playlist = None while not self.should_stop(): + plugin = get_plugin('music.mpd') status = plugin.status().output track = plugin.currentsong().output state = status['state'].lower()