From 467afb5d636886bdccfed5838ed07a8ff4760a5b Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 16 Mar 2009 15:51:51 +0000 Subject: [PATCH] slight tweak to the get_hosts method --- deluge/ui/web/json_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index 2c2d0c645..d28e8a122 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -367,7 +367,7 @@ class WebApi(JSONComponent): if all(map(lambda x: x[3] is not None, hosts.values())): main_deferred.callback(hosts.values()) - def on_connect(result, c, host_id): + def on_connect(connected, c, host_id): def on_info(info, c): hosts[host_id][3] = _("Online") hosts[host_id][4] = info @@ -378,7 +378,7 @@ class WebApi(JSONComponent): hosts[host_id][3] = _("Offline") run_check() - if not c.connected(): + if not connected: hosts[host_id][3] = _("Offline") run_check() return