[#3068|WebUI] Fix not connecting to default daemon

This commit is contained in:
Calum Lind 2017-06-16 07:45:26 +01:00
parent 89e245e2d3
commit fb71d049b1
1 changed files with 1 additions and 3 deletions

View File

@ -386,9 +386,7 @@ class WebApi(JSONComponent):
client.set_disconnect_callback(self._on_client_disconnect)
default_host_id = component.get('DelugeWeb').config['default_daemon']
if default_host_id:
host_info = self._get_host(default_host_id)
if host_info:
return self._connect_daemon(*host_info[1:])
return self._connect_daemon(default_host_id)
return defer.succeed(True)