Make sure mopidy startup doesn't block

pull/433/head
Åke Forslund 2016-12-23 23:33:13 +01:00
parent ee5141ed6f
commit b098f2ad30
1 changed files with 1 additions and 2 deletions

View File

@ -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: