mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-31 19:08:28 +00:00
fix(core): clear loop.this_task
before restart
[no changelog]
This commit is contained in:
parent
1f8ebc3562
commit
bff1ba454b
@ -130,6 +130,9 @@ def run() -> None:
|
|||||||
|
|
||||||
def clear() -> None:
|
def clear() -> None:
|
||||||
"""Clear all queue state. Any scheduled or paused tasks will be forgotten."""
|
"""Clear all queue state. Any scheduled or paused tasks will be forgotten."""
|
||||||
|
global this_task
|
||||||
|
this_task = None
|
||||||
|
|
||||||
_ = [0, 0, 0]
|
_ = [0, 0, 0]
|
||||||
while _queue:
|
while _queue:
|
||||||
_queue.pop(_)
|
_queue.pop(_)
|
||||||
|
Loading…
Reference in New Issue
Block a user