1
0

allow client daemon to be launched in the foreground (fix #1873)

This commit is contained in:
ThomasV
2017-01-07 10:10:51 +01:00
parent f381aee835
commit be15b76c9b
3 changed files with 10 additions and 9 deletions

View File

@@ -147,8 +147,8 @@ class Daemon(DaemonThread):
def run_daemon(self, config):
sub = config.get('subcommand')
assert sub in ['start', 'stop', 'status']
if sub == 'start':
assert sub in [None, 'start', 'stop', 'status']
if sub in [None, 'start']:
response = "Daemon already running"
elif sub == 'status':
if self.network: