core/webauthn: fix bug introduced in bb2556

Fixes #448
pull/464/head
Jan Pochyla 5 years ago
parent 9cef06de2b
commit 34ec1ed294

@ -355,12 +355,16 @@ class ConfirmState:
return False
if utime.ticks_ms() >= self.deadline:
if self.workflow is not None:
# We crossed the deadline, kill the running confirmation
# workflow. `self.workflow` is reset in the finally
# handler in `confirm_workflow`.
loop.close(self.workflow)
return False
return True
def setup(self, action: int, checksum: bytes, app_id: bytes) -> bool:
if workflow.workflows:
if workflow.tasks or self.workflow:
# If any other workflow is running, we bail out.
return False
self.action = action

Loading…
Cancel
Save