mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +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
|
# Sort out getting the default daemon here
|
||||||
default = component.get("DelugeWeb").config["default_daemon"]
|
default = component.get("DelugeWeb").config["default_daemon"]
|
||||||
host = component.get("Web").get_host(default)
|
host = component.get("Web").get_host(default)
|
||||||
self.connect()
|
if host:
|
||||||
|
self.connect(*host[1:])
|
||||||
|
else:
|
||||||
|
self.connect()
|
||||||
|
|
||||||
def _on_client_disconnect(self, *args):
|
def _on_client_disconnect(self, *args):
|
||||||
component.get("Web.PluginManager").stop()
|
component.get("Web.PluginManager").stop()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue