[Core] Fix stdout object when stopping daemon

This commit is contained in:
Calum Lind 2016-04-18 15:29:52 +01:00
parent 64c67a07dd
commit f036c1a6c5
1 changed files with 4 additions and 2 deletions

View File

@ -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)