]> kaliko git repositories - mpd-sima.git/blobdiff - sima/core.py
Fixed bug in uniq plugin
[mpd-sima.git] / sima / core.py
index 264d97e144e108f45a3794c955c70f232a3156da..60f6b2b08a0f85ba7854d204e4127ba5723edd9b 100644 (file)
@@ -162,10 +162,10 @@ class Sima(Daemon):
         try:
             self.log.info('Connecting MPD: {0}:{1}'.format(*self.player._mpd))
             self.player.connect()
+            self.foreach_plugin('start')
         except (PlayerError, PlayerUnHandledError) as err:
             self.log.warning('Player: {}'.format(err))
             self.reconnect_player()
-        self.foreach_plugin('start')
         while 42:
             try:
                 self.loop()