Author: damoxc
Revision: 5725
Log:
fix an AlreadyCalledError when getting a hosts status
Diff:
Modified: trunk/deluge/ui/web/json_api.py
===================================================================
--- trunk/deluge/ui/web/json_api.py 2009-09-09 20:47:12 UTC (rev 5724)
+++ trunk/deluge/ui/web/json_api.py 2009-09-10 14:19:05 UTC (rev 5725)
@@ -590,11 +590,11 @@
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---