Remove unreachable code
This commit is contained in:
parent
2980b580a7
commit
a90c935758
@ -261,11 +261,9 @@ class Daemon(DaemonThread):
|
|||||||
fd = Daemon.get_fd_or_server(lockfile)
|
fd = Daemon.get_fd_or_server(lockfile)
|
||||||
if isinstance(fd, int):
|
if isinstance(fd, int):
|
||||||
subcommand = config.get('subcommand')
|
subcommand = config.get('subcommand')
|
||||||
|
assert subcommand in ['start', 'stop', 'status']
|
||||||
if subcommand != 'start':
|
if subcommand != 'start':
|
||||||
if subcommand in ['status', 'stop']:
|
print_msg("Daemon not running")
|
||||||
print_msg("Daemon not running")
|
|
||||||
else:
|
|
||||||
print_msg("syntax: electrum daemon <start|status|stop>")
|
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
Daemon.remove_lockfile(lockfile)
|
Daemon.remove_lockfile(lockfile)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user