mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-12 14:16:06 +00:00
chore(core): close all workflows when channel is replaced
[no changelog]
This commit is contained in:
parent
0f4e529c1f
commit
9ba89df979
@ -121,6 +121,9 @@ class Channel:
|
||||
required_state=ChannelState.ENCRYPTED_TRANSPORT,
|
||||
required_key=CHANNEL_HOST_STATIC_PUBKEY,
|
||||
)
|
||||
if was_any_replaced:
|
||||
# In case a channel was replaced, close all running workflows
|
||||
workflow.close_others()
|
||||
log.debug(__name__, "Was any channel replaced? %s", str(was_any_replaced))
|
||||
|
||||
def is_channel_to_replace(self) -> bool:
|
||||
|
Loading…
Reference in New Issue
Block a user