[#2805] Fix: Standalone mode not detecting local running daemon

This commit is contained in:
bendikro 2016-04-21 12:39:31 +02:00
parent 58bc8b6ec7
commit edf616baca
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,6 @@ class Daemon(object):
altered by core.set_config() RPC method. altered by core.set_config() RPC method.
""" """
self.classic = classic self.classic = classic
self.port = port
self.pid_file = get_config_dir("deluged.pid") self.pid_file = get_config_dir("deluged.pid")
log.info("Deluge daemon %s", get_version()) log.info("Deluge daemon %s", get_version())
check_running_daemon(self.pid_file) check_running_daemon(self.pid_file)
@ -108,6 +107,7 @@ class Daemon(object):
if port is None: if port is None:
port = self.core.config["daemon_port"] port = self.core.config["daemon_port"]
self.port = port
if interface and not is_ip(interface): if interface and not is_ip(interface):
log.error("Invalid UI interface (must be IP Address): %s", interface) log.error("Invalid UI interface (must be IP Address): %s", interface)