1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 03:18:20 +00:00

fido_u2f: wait until previous u2f workflow ends

This commit is contained in:
Jan Pochyla 2018-06-27 17:15:26 +02:00
parent 9f90ca21a9
commit f9d77479d4

View File

@ -356,12 +356,12 @@ class ConfirmState:
if self.action != action or self.checksum != checksum: if self.action != action or self.checksum != checksum:
return False return False
if utime.ticks_ms() >= self.deadline: if utime.ticks_ms() >= self.deadline:
if self.workflow is not None:
loop.close(self.workflow)
return False return False
return True return True
def setup(self, action: int, checksum: bytes, app_id: bytes) -> None: def setup(self, action: int, checksum: bytes, app_id: bytes) -> None:
if self.workflow is not None:
loop.close(self.workflow)
if workflow.workflows: if workflow.workflows:
return False return False