Skip to content

Commit

Permalink
[WebUI]Fix Connection Manager stop daemon, return 5 elem from get_hos…
Browse files Browse the repository at this point in the history
…t_info()
  • Loading branch information
ppayne committed May 13, 2024
1 parent 7f3f7f6 commit a78a6bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deluge/ui/hostlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ def get_host_info(self, host_id):
host_id (str): The host id to get info on.
Returns:
list: A list of (host_id, hostname, port, username).
list: A list of (host_id, hostname, port, username, password).
"""
for host_entry in self.config['hosts']:
if host_entry[0] == host_id:
return host_entry[0:4]
return host_entry[0:5]
else:
return []

Expand Down Expand Up @@ -212,7 +212,7 @@ def on_connect_failed(reason, host_id):
return status_offline

try:
host_id, host, port, user = self.get_host_info(host_id)
host_id, host, port, user = self.get_host_info(host_id)[0:4]
except ValueError:
log.warning('Problem getting host_id info from hostlist')
return defer.succeed(status_offline)
Expand Down

0 comments on commit a78a6bc

Please sign in to comment.