[Core] Fix stdout object when stopping daemon
This commit is contained in:
parent
64c67a07dd
commit
f036c1a6c5
|
@ -119,9 +119,11 @@ def start_daemon(skip_start=False):
|
|||
interface=options.ui_interface,
|
||||
port=options.port,
|
||||
read_only_config_keys=options.read_only_config_keys.split(","))
|
||||
if not skip_start:
|
||||
daemon.start()
|
||||
if skip_start:
|
||||
return daemon
|
||||
else:
|
||||
daemon.start()
|
||||
|
||||
except Exception as ex:
|
||||
log.exception(ex)
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in New Issue