From fb71d049b14144711205ab468c32fc31cd44e6c4 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 16 Jun 2017 07:45:26 +0100 Subject: [PATCH] [#3068|WebUI] Fix not connecting to default daemon --- deluge/ui/web/json_api.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index 3879f36c4..28b2bb1b8 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -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)