From b098f2ad30339c0efb9728741b796fe9f2db7f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Forslund?= Date: Fri, 23 Dec 2016 23:33:13 +0100 Subject: [PATCH] Make sure mopidy startup doesn't block --- mycroft/skills/playback_control/mopidy_service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mycroft/skills/playback_control/mopidy_service.py b/mycroft/skills/playback_control/mopidy_service.py index fe503c1595..76df9495c5 100644 --- a/mycroft/skills/playback_control/mopidy_service.py +++ b/mycroft/skills/playback_control/mopidy_service.py @@ -13,7 +13,6 @@ Mopidy = __import__('mopidypost').Mopidy class MopidyService(AudioBackend): def _connect(self, message): - logger.debug('Could not connect to server, will retry quietly') url = 'http://localhost:6680' if self.config is not None: url = self.config.get('url', url) @@ -37,7 +36,7 @@ class MopidyService(AudioBackend): self.mopidy = None self.emitter.on('MopidyServiceConnect', self._connect) - self._connect(None) + self.emitter.emit(Message('MopidyServiceConnect')) def supported_uris(self): if self.mopidy: