mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
fido_u2f: wait until previous u2f workflow ends
This commit is contained in:
parent
9f90ca21a9
commit
f9d77479d4
@ -356,12 +356,12 @@ class ConfirmState:
|
||||
if self.action != action or self.checksum != checksum:
|
||||
return False
|
||||
if utime.ticks_ms() >= self.deadline:
|
||||
if self.workflow is not None:
|
||||
loop.close(self.workflow)
|
||||
return False
|
||||
return True
|
||||
|
||||
def setup(self, action: int, checksum: bytes, app_id: bytes) -> None:
|
||||
if self.workflow is not None:
|
||||
loop.close(self.workflow)
|
||||
if workflow.workflows:
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user