[#3068|WebUI] Fix not connecting to default daemon
This commit is contained in:
parent
89e245e2d3
commit
fb71d049b1
@ -386,9 +386,7 @@ class WebApi(JSONComponent):
|
|||||||
client.set_disconnect_callback(self._on_client_disconnect)
|
client.set_disconnect_callback(self._on_client_disconnect)
|
||||||
default_host_id = component.get('DelugeWeb').config['default_daemon']
|
default_host_id = component.get('DelugeWeb').config['default_daemon']
|
||||||
if default_host_id:
|
if default_host_id:
|
||||||
host_info = self._get_host(default_host_id)
|
return self._connect_daemon(default_host_id)
|
||||||
if host_info:
|
|
||||||
return self._connect_daemon(*host_info[1:])
|
|
||||||
|
|
||||||
return defer.succeed(True)
|
return defer.succeed(True)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user