mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
fix an AlreadyCalledError when getting a hosts status
This commit is contained in:
parent
a78ab9529f
commit
1ebb490e4e
1 changed files with 5 additions and 5 deletions
|
@ -590,11 +590,11 @@ class WebApi(JSONComponent):
|
|||
callback(_("Connected"), info)
|
||||
|
||||
client.daemon.info().addCallback(on_info)
|
||||
|
||||
c = Client()
|
||||
d = c.connect(host, port, user, password)
|
||||
d.addCallback(on_connect, c, host_id)
|
||||
d.addErrback(on_connect_failed, host_id)
|
||||
else:
|
||||
c = Client()
|
||||
d = c.connect(host, port, user, password)
|
||||
d.addCallback(on_connect, c, host_id)
|
||||
d.addErrback(on_connect_failed, host_id)
|
||||
return main_deferred
|
||||
|
||||
@export
|
||||
|
|
Loading…
Add table
Reference in a new issue