mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Fix autoconnecting to the default host
This commit is contained in:
parent
8e7432e71c
commit
6422f11971
1 changed files with 4 additions and 1 deletions
|
@ -162,7 +162,10 @@ class JSON(resource.Resource, component.Component):
|
|||
# Sort out getting the default daemon here
|
||||
default = component.get("DelugeWeb").config["default_daemon"]
|
||||
host = component.get("Web").get_host(default)
|
||||
self.connect()
|
||||
if host:
|
||||
self.connect(*host[1:])
|
||||
else:
|
||||
self.connect()
|
||||
|
||||
def _on_client_disconnect(self, *args):
|
||||
component.get("Web.PluginManager").stop()
|
||||
|
|
Loading…
Add table
Reference in a new issue