1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-19 14:08:11 +00:00

fix(core): queue events from iface if all tasks waiting on that iface are gone

this juuust might fix unexplained freezes on hardware
This commit is contained in:
matejcik 2024-03-22 13:30:02 +01:00 committed by TychoVrahe
parent ff869dd864
commit 759ce5bc14

View File

@ -93,6 +93,9 @@ def close(task: Task) -> None:
"""
for iface in _paused: # pylint: disable=consider-using-dict-items
_paused[iface].discard(task)
for iface in _paused: # pylint: disable=consider-using-dict-items
if not _paused[iface]:
del _paused[iface]
_queue.discard(task)
task.close()
finalize(task, GeneratorExit())