Skip to content

Commit d9286ea

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

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
@@ -167,9 +167,11 @@ async def handle_session(iface: WireInterface) -> None:
167167
if not do_not_restart:
168168
# Wait for all active workflows to finish.
169169
await workflow.join_all()
170-
# Let the session be restarted from `main`.
171170
if __debug__:
172-
log.debug(__name__, "loop.clear()", iface=iface)
171+
import apps.debug
172+
173+
await apps.debug.close_session()
174+
# Let the session be restarted from `main`.
173175
loop.clear()
174176
return # pylint: disable=lost-exception
175177

0 commit comments

Comments
 (0)