allow client daemon to be launched in the foreground (fix #1873)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user