diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index a95b741f9..b74a57339 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -686,7 +686,7 @@ class WebApi(JSONComponent): :type host_id: string """ main_deferred = Deferred() - host = self.get_host(connection_id) + host = self.get_host(host_id) if not host: main_deferred.callback((False, _("Daemon doesn't exist"))) return main_deferred