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

this juuust might fix unexplained freezes on hardware
matejcik 6 months ago
parent 0fe1b153f7
commit b433c209b3

@ -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())

Loading…
Cancel
Save