Browse Source

review: reaqd schedule from taker object

master
Daniel 3 years ago
parent
commit
2cb41fcd3e
No known key found for this signature in database
GPG Key ID: 3FB015F7E1AA3AFB
  1. 7
      jmclient/jmclient/wallet_rpc.py

7
jmclient/jmclient/wallet_rpc.py

@ -590,11 +590,8 @@ class JMWalletDaemon(Service):
if auth_header is not None:
# At this point if an `auth_header` is present, it has been checked
# by the call to `check_cookie_if_present` above.
logsdir = os.path.join(os.path.dirname(jm_single().config_location), "logs")
sfile = os.path.join(logsdir, self.tumbler_options['schedulefile'])
res, schedule = get_schedule(sfile)
if not res:
schedule = None
if self.taker is not None and not self.taker.aborted:
schedule = self.taker.schedule
else:
schedule = None
else:

Loading…
Cancel
Save