review: reaqd schedule from taker object

This commit is contained in:
Daniel 2022-08-04 15:43:03 +02:00
parent 521189a465
commit 2cb41fcd3e
No known key found for this signature in database
GPG key ID: 3FB015F7E1AA3AFB

View file

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