From 3587fa7cb4f477f0073db0a16ef306c11e1370b8 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 12 Jan 2019 02:15:24 +0100 Subject: [PATCH] Force music.mpd plugin reload when the mpd backend fails to get the state --- platypush/backend/music/mpd/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/backend/music/mpd/__init__.py b/platypush/backend/music/mpd/__init__.py index 28c762c273..ee7479fc41 100644 --- a/platypush/backend/music/mpd/__init__.py +++ b/platypush/backend/music/mpd/__init__.py @@ -68,6 +68,7 @@ class MusicMpdBackend(Backend): success = True except Exception as e: self.logger.debug(e) + get_plugin('music.mpd', reload=True) if not state: state = last_state if not playlist: playlist = last_playlist if not track: track = last_track