1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-30 18:38:27 +00:00

fix(core): clear loop.this_task before restart

[no changelog]
This commit is contained in:
Roman Zeyde 2025-05-02 16:54:38 +03:00
parent 1f8ebc3562
commit bff1ba454b

View File

@ -130,6 +130,9 @@ def run() -> None:
def clear() -> None:
"""Clear all queue state. Any scheduled or paused tasks will be forgotten."""
global this_task
this_task = None
_ = [0, 0, 0]
while _queue:
_queue.pop(_)