Skip to content

Commit 1834365

Browse files
committed
feat(core): join debuglink task before restarting Codec v1 event loop
[no changelog]
1 parent 106ca13 commit 1834365

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/trezor/wire/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@ async def handle_session(iface: WireInterface) -> None:
165165
if not do_not_restart:
166166
# Wait for all active workflows to finish.
167167
await workflow.join_all()
168-
# Let the session be restarted from `main`.
169168
if __debug__:
170-
log.debug(__name__, "loop.clear()", iface=iface)
169+
import apps.debug
170+
171+
await apps.debug.close_session()
172+
# Let the session be restarted from `main`.
171173
loop.clear()
172174
return # pylint: disable=lost-exception
173175

0 commit comments

Comments
 (0)