mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
[Core] Fix stdout object when stopping daemon
This commit is contained in:
parent
64c67a07dd
commit
f036c1a6c5
1 changed files with 4 additions and 2 deletions
|
@ -119,9 +119,11 @@ def start_daemon(skip_start=False):
|
||||||
interface=options.ui_interface,
|
interface=options.ui_interface,
|
||||||
port=options.port,
|
port=options.port,
|
||||||
read_only_config_keys=options.read_only_config_keys.split(","))
|
read_only_config_keys=options.read_only_config_keys.split(","))
|
||||||
if not skip_start:
|
if skip_start:
|
||||||
|
return daemon
|
||||||
|
else:
|
||||||
daemon.start()
|
daemon.start()
|
||||||
return daemon
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
log.exception(ex)
|
log.exception(ex)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue