Skip to content

Commit 6213e3b

Browse files
committed
test(core): wait for debuglink task before restarting THP event loop
[no changelog]
1 parent 00ddc10 commit 6213e3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/trezor/wire/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ async def handle_session(iface: WireInterface) -> None:
110110
finally:
111111
# Wait for all active workflows to finish.
112112
await workflow.join_all()
113+
if __debug__:
114+
import apps.debug
115+
116+
await apps.debug.close_session()
113117
loop.clear()
114118

115119
else:

0 commit comments

Comments
 (0)