mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix some minor bugs in ConnectionManager
This commit is contained in:
parent
33663a9d5d
commit
097664e890
1 changed files with 4 additions and 2 deletions
|
@ -486,10 +486,12 @@ class ConnectionManager(component.Component):
|
||||||
HOSTLIST_STATUS[status] == "Connected":
|
HOSTLIST_STATUS[status] == "Connected":
|
||||||
# We need to stop this daemon
|
# We need to stop this daemon
|
||||||
# Call the shutdown method on the daemon
|
# Call the shutdown method on the daemon
|
||||||
|
if u.hostname == "127.0.0.1" or u.hostname == "localhost":
|
||||||
|
uri = self.get_localhost_auth_uri(uri)
|
||||||
core = xmlrpclib.ServerProxy(uri)
|
core = xmlrpclib.ServerProxy(uri)
|
||||||
core.shutdown()
|
core.shutdown()
|
||||||
# Update display to show change
|
# Update display to show change
|
||||||
self.update()
|
self._update_list()
|
||||||
elif HOSTLIST_STATUS[status] == "Offline":
|
elif HOSTLIST_STATUS[status] == "Offline":
|
||||||
self.start_localhost(u.port)
|
self.start_localhost(u.port)
|
||||||
|
|
||||||
|
@ -536,7 +538,7 @@ class ConnectionManager(component.Component):
|
||||||
log.warning("Host does not appear to be online..")
|
log.warning("Host does not appear to be online..")
|
||||||
# If this is an offline localhost.. lets start it and connect
|
# If this is an offline localhost.. lets start it and connect
|
||||||
if localhost:
|
if localhost:
|
||||||
self.start_localhost(port)
|
self.start_localhost(u.port)
|
||||||
# We need to wait for the host to start before connecting
|
# We need to wait for the host to start before connecting
|
||||||
auth_uri = None
|
auth_uri = None
|
||||||
while not auth_uri:
|
while not auth_uri:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue