fix an AlreadyCalledError when getting a hosts status
This commit is contained in:
parent
a78ab9529f
commit
1ebb490e4e
@ -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…
x
Reference in New Issue
Block a user