mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 03:36:16 +00:00
slight tweak to the get_hosts method
This commit is contained in:
parent
87b789e3a1
commit
467afb5d63
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user